From c25222fd8f851376cc1eaa3b6b0eb1457b4a2e85 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Tue, 6 Aug 2024 13:34:17 +0200 Subject: [PATCH] ci : initial workflow --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile 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