mirror of
https://github.com/reiyua/HospitalWaitTimeCalc.git
synced 2026-11-17 06:12:05 +11:00
15 lines
352 B
Docker
15 lines
352 B
Docker
FROM python:3.12.13 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.12.13-slim
|
|
WORKDIR /app
|
|
COPY --from=builder /app/.venv .venv/
|
|
COPY . .
|
|
CMD ["/app/.venv/bin/flask", "run", "--host=0.0.0.0", "--port=8080"]
|