Change dockerfile and actions
release-tag / release-image (push) Failing after 26s

This commit is contained in:
2024-05-08 23:40:54 +02:00
parent ade051890e
commit bb7847f5e0
2 changed files with 14 additions and 24 deletions
+8 -6
View File
@@ -1,13 +1,15 @@
FROM python:alpine3.19
WORKDIR /usr/app
FROM 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 .
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY src .
# étape de production
COPY src .
EXPOSE 8765
CMD ["python3", "-u", "main.py"]