From cc73d2d4557f50169de440f91e0a2d551757f044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Sun, 21 Sep 2025 23:04:09 +0200 Subject: [PATCH] run in docker --- Dockerfile | 5 ++--- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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