-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Add pip flag --no-cache-dir to reduce disk size used (#38)
- Loading branch information
Showing
9 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ LABEL maintainer="Sebastian Ramirez <[email protected]>" | |
# Newer versions don't support Python 2.7 (Python 2.7 reached end of life long ago) | ||
# So for this tag just install whatever is available for Python 2.7, don't use | ||
# Dependabot's updated requirements | ||
RUN pip install meinheld gunicorn | ||
RUN pip install --no-cache-dir meinheld gunicorn | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ LABEL maintainer="Sebastian Ramirez <[email protected]>" | |
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN apk add --no-cache --virtual .build-deps gcc libc-dev \ | ||
&& pip install -r /tmp/requirements.txt \ | ||
&& pip install --no-cache-dir -r /tmp/requirements.txt \ | ||
&& apk del .build-deps gcc libc-dev | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.6 | |
LABEL maintainer="Sebastian Ramirez <[email protected]>" | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
RUN pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ LABEL maintainer="Sebastian Ramirez <[email protected]>" | |
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN apk add --no-cache --virtual .build-deps gcc libc-dev \ | ||
&& pip install -r /tmp/requirements.txt \ | ||
&& pip install --no-cache-dir -r /tmp/requirements.txt \ | ||
&& apk del .build-deps gcc libc-dev | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.7 | |
LABEL maintainer="Sebastian Ramirez <[email protected]>" | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
RUN pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ LABEL maintainer="Sebastian Ramirez <[email protected]>" | |
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN apk add --no-cache --virtual .build-deps gcc libc-dev \ | ||
&& pip install -r /tmp/requirements.txt \ | ||
&& pip install --no-cache-dir -r /tmp/requirements.txt \ | ||
&& apk del .build-deps gcc libc-dev | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.8 | |
LABEL maintainer="Sebastian Ramirez <[email protected]>" | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
RUN pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ LABEL maintainer="Sebastian Ramirez <[email protected]>" | |
COPY requirements.txt /tmp/requirements.txt | ||
|
||
RUN apk add --no-cache --virtual .build-deps gcc libc-dev \ | ||
&& pip install -r /tmp/requirements.txt \ | ||
&& pip install --no-cache-dir -r /tmp/requirements.txt \ | ||
&& apk del .build-deps gcc libc-dev | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM python:3.9 | |
LABEL maintainer="Sebastian Ramirez <[email protected]>" | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
RUN pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
COPY ./entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
|