forked from mtusi2026/mtusi2026lab3
Реализовать лабораторную 3
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
FROM python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY migrations/ ./migrations/
|
||||
COPY src/ ./src/
|
||||
USER 10001:10001
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=3s --timeout=3s --start-period=5s --retries=4 \
|
||||
CMD ["python", "-c", "import os,urllib.request; urllib.request.urlopen('http://127.0.0.1:'+os.getenv('APP_PORT','8080')+'/health/ready',timeout=2).close()"]
|
||||
CMD ["python", "src/server.py"]
|
||||
Reference in New Issue
Block a user