run in docker
This commit is contained in:
@@ -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
|
||||
EXPOSE 5580
|
||||
ENTRYPOINT ["python3", "/run_waitress.py"]
|
@@ -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
|
||||
|
Reference in New Issue
Block a user