21 lines
446 B
Docker
Executable File
21 lines
446 B
Docker
Executable File
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3.12-slim AS runtime
|
|
WORKDIR /app
|
|
|
|
RUN pip install --no-cache-dir --upgrade pip
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# Persistent application state (the generated Flask session key) lives in this volume.
|
|
VOLUME ["/app/data"]
|
|
|
|
ENV TELCO_DATA_DIR=/app/data
|
|
ENV PORT=8000
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "app:app"]
|