diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..25e2572 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:alpine3.19 AS build-stage +WORKDIR /app +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m venv $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" +COPY requirements.txt ./ +RUN pip install -r requirements.txt + +# étape de production +COPY src ./src +COPY img ./img +CMD ["python3", "-u", "./src/generate_tokens_mvp.py"] \ No newline at end of file