ci : initial configuration
release-tag / release-image (push) Failing after 8s

This commit is contained in:
2024-08-02 10:52:50 +02:00
parent 9601dee511
commit aa4c6edc65
2 changed files with 77 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
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
CMD ["python3", "-u", "./src/generate_cards_mvp.py"]