forked from mtusi2026/mtusi2026lab2
10 lines
295 B
Docker
10 lines
295 B
Docker
FROM python:3.12.10-slim-bookworm
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 APP_HOST=0.0.0.0 APP_PORT=8080
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY app/ ./app/
|
|
COPY migrations/ ./migrations/
|
|
EXPOSE 8080
|
|
CMD ["python", "-m", "app.main"]
|