Files
mtusi2026lab2/Dockerfile
T
allerg1q 3bfaae3e0a
Skeleton contracts / contracts (pull_request) Canceled after 0s
Implement lab2 PostgreSQL and persistent sessions
2026-11-16 22:03:47 +03:00

18 lines
330 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ ./src/
COPY migrations/ ./migrations/
ENV HOST=0.0.0.0
ENV PORT=8080
EXPOSE 8080
CMD ["sh", "-c", "python -m src.migrate && exec uvicorn src.main:app --host \"$HOST\" --port \"$PORT\""]