run in docker

This commit is contained in:
Mateusz Gruszczyński
2025-09-21 23:04:09 +02:00
parent 1438ba6195
commit cc73d2d455
2 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ WORKDIR /app
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
COPY run_waitress.py /run_waitress.py
RUN chmod +x /run_waitress.py RUN chmod +x /run_waitress.py
EXPOSE 8000 EXPOSE 5580
ENTRYPOINT ["python3", "/run_waitress.py"] ENTRYPOINT ["python3", "/run_waitress.py"]

View File

@@ -10,7 +10,7 @@ services:
"CMD", "CMD",
"python", "python",
"-c", "-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 interval: 30s
timeout: 10s timeout: 10s