Skip to content

Commit

Permalink
feat: dockerfile installs pip requirements before copying python files
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Apr 20, 2022
1 parent b6f0cd1 commit 916dee4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ RUN useradd cif -M -G root -u 1021 && chmod -R 775 /storage \
&& chown -R cif:root /storage \
&& apt-get update

COPY . ./
COPY requirements.txt ./requirements.txt
RUN pip install -r ./requirements.txt

COPY . ./

ENV PYTHONPATH=/storage

EXPOSE 8000
Expand Down

0 comments on commit 916dee4

Please sign in to comment.