16 lines
350 B
Docker
16 lines
350 B
Docker
FROM python:3.13.1 AS builder
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
WORKDIR /app
|
|
|
|
|
|
RUN python -m venv .venv
|
|
COPY requirements.txt ./
|
|
RUN .venv/bin/pip install -r requirements.txt
|
|
FROM python:3.13.1-slim
|
|
WORKDIR /app
|
|
COPY --from=builder /app/.venv .venv/
|
|
COPY . .
|
|
CMD ["/app/.venv/bin/flask", "run", "--host=0.0.0.0", "--port=8080"]
|