diff --git a/Dockerfile b/Dockerfile index bfd28b8..527ece0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ WORKDIR /app COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . . -COPY run_waitress.py /run_waitress.py RUN chmod +x /run_waitress.py -EXPOSE 8000 -ENTRYPOINT ["python3", "/run_waitress.py"] +EXPOSE 5580 +ENTRYPOINT ["python3", "/run_waitress.py"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e8688f6..28b6f2b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: "CMD", "python", "-c", - "import urllib.request; import sys; sys.exit(0) if urllib.request.urlopen('http://localhost:8000/').getcode() == 200 else sys.exit(1)" + "import urllib.request; import sys; sys.exit(0) if urllib.request.urlopen('http://localhost:5580/').getcode() == 200 else sys.exit(1)" ] interval: 30s timeout: 10s