Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ RUN apk add --no-cache --update python3 py3-pip bash
ADD ./webapp/requirements.txt /tmp/requirements.txt

# Install dependencies
RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt
#RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt

# Installer python3, pip et venv
RUN apk add --no-cache --update python3 py3-pip py3-venv

# Créer un environnement virtuel
RUN python3 -m venv /venv

# Activer l’environnement et installer les dépendances
RUN /venv/bin/pip install --no-cache-dir -q -r /tmp/requirements.txt

# Ajouter ceci pour exécuter Python avec l’environnement virtuel
ENV PATH="/venv/bin:$PATH"


# Add our code
ADD ./webapp /opt/webapp/
Expand Down