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
back-python/Dockerfile
T
legonzaur 2b699857e2
release-tag / release-image (push) Successful in 1m42s
FIX : docker compose
2024-05-08 23:55:56 +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
COPY src .
# étape de production
COPY src .
EXPOSE 8765
CMD ["python3", "-u", "main.py"]