Skip to content

Commit

Permalink
⬆️ Update pip install command with flag --no-cache-dir to reduce disk…
Browse files Browse the repository at this point in the history
… used (#120)
  • Loading branch information
tiangolo authored Sep 17, 2021
1 parent c8b6ff6 commit 3173304
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docker-images/python2.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY install-nginx-debian.sh /

RUN bash /install-nginx-debian.sh

# Install requirements: uWSGI
# Install requirements
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

EXPOSE 80

Expand Down
4 changes: 2 additions & 2 deletions docker-images/python3.6.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY install-nginx-debian.sh /

RUN bash /install-nginx-debian.sh

# Install requirements: uWSGI
# Install requirements
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

EXPOSE 80

Expand Down
4 changes: 2 additions & 2 deletions docker-images/python3.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY install-nginx-debian.sh /

RUN bash /install-nginx-debian.sh

# Install requirements: uWSGI
# Install requirements
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

EXPOSE 80

Expand Down
4 changes: 2 additions & 2 deletions docker-images/python3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY install-nginx-debian.sh /

RUN bash /install-nginx-debian.sh

# Install requirements: uWSGI
# Install requirements
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

EXPOSE 80

Expand Down
4 changes: 2 additions & 2 deletions docker-images/python3.9.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY install-nginx-debian.sh /

RUN bash /install-nginx-debian.sh

# Install requirements: uWSGI
# Install requirements
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

EXPOSE 80

Expand Down

0 comments on commit 3173304

Please sign in to comment.