Complete Lab 2 for Grade 5 (Track 2)
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
paflove
2026-10-28 13:23:56 +03:00
parent 65003b6119
commit b07bd5a571
13 changed files with 1282 additions and 15 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM python:3.11.9-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -r appgroup && useradd -r -g appgroup appuser
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY migrations/ ./migrations/
COPY src/ ./src/
RUN chown -R appuser:appgroup /app
USER appuser
EXPOSE 8080
HEALTHCHECK --interval=10s --timeout=3s --start-period=3s --retries=3 \
CMD curl -f http://localhost:8080/health/live || exit 1
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"]