This repository has been archived on 2024-07-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
legonzaur ef6ba0fe48
release-tag / release-image (push) Successful in 26s
Fix dockerfile
2024-05-09 10:18:38 +02:00

15 lines
297 B
Docker

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
EXPOSE 8765
CMD ["python3", "-u", "./src/main.py"]