Skip to content

Commit

Permalink
ignore pip cache in docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Santuari <[email protected]>
  • Loading branch information
santuari committed Apr 26, 2021
1 parent 56f9cd2 commit ae9f436
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions template/python3-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ USER app
ENV PATH=$PATH:/home/app/.local/bin:/home/app/python/bin/
ENV PYTHONPATH=$PYTHONPATH:/home/app/python

RUN pip install -r requirements.txt --target=/home/app/python
RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python

RUN mkdir -p function
RUN touch ./function/__init__.py

WORKDIR /home/app/function/
COPY function/requirements.txt .

RUN pip install -r requirements.txt --target=/home/app/python
RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python

WORKDIR /home/app/

Expand Down
4 changes: 2 additions & 2 deletions template/python3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ USER app
ENV PATH=$PATH:/home/app/.local/bin:/home/app/python/bin/
ENV PYTHONPATH=$PYTHONPATH:/home/app/python

RUN pip install -r requirements.txt --target=/home/app/python
RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python

RUN mkdir -p function
RUN touch ./function/__init__.py

WORKDIR /home/app/function/
COPY function/requirements.txt .

RUN pip install -r requirements.txt --target=/home/app/python
RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python

WORKDIR /home/app/

Expand Down

0 comments on commit ae9f436

Please sign in to comment.