From 93febd4968ebbf0f5a90989bbe11abcaaafcdbd1 Mon Sep 17 00:00:00 2001 From: jerome Date: Tue, 24 Feb 2026 13:18:28 +0100 Subject: commit initial --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dccc366 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# Stage 1: Build Stage +FROM python:slim AS build +COPY requirements.txt . +RUN python -m venv /opt/venv && . /opt/venv/bin/activate && pip install --no-cache-dir -r requirements.txt + +# Stage 2: Run Stage +FROM python:slim AS run +COPY --from=build /opt/venv /opt/venv +WORKDIR /app +COPY app /app +ENV PATH="/opt/venv/bin/:$PATH" +EXPOSE 80 +CMD ["gunicorn", "--bind", "0.0.0.0:80", "app:app"] -- cgit v1.2.3