Use `pip install` with `--no-cache-dir` inside Docker (#939)

pull/940/head
Peter Dave Hello 2023-09-04 20:19:28 +08:00 committed by GitHub
parent be3baed7e3
commit f84d604a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@
FROM python:3.10-buster
RUN apt-get update && \
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
RUN pip install dbus-python PyGObject
RUN pip install --no-cache-dir dbus-python PyGObject
# Apprise Setup
VOLUME ["/apprise"]
@ -44,7 +44,7 @@ COPY dev-requirements.txt /
ENV PYTHONPATH /apprise
ENV PYTHONPYCACHEPREFIX /apprise/__pycache__/py310
RUN pip install -r /requirements.txt -r /dev-requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt
RUN addgroup --gid ${USER_GID:-1000} apprise
RUN adduser --system --uid ${USER_UID:-1000} --ingroup apprise --home /apprise --no-create-home --disabled-password apprise

View File

@ -34,7 +34,7 @@
FROM python:3.11-buster
RUN apt-get update && \
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
RUN pip install dbus-python PyGObject
RUN pip install --no-cache-dir dbus-python PyGObject
# Apprise Setup
VOLUME ["/apprise"]
@ -44,7 +44,7 @@ COPY dev-requirements.txt /
ENV PYTHONPATH /apprise
ENV PYTHONPYCACHEPREFIX /apprise/__pycache__/py311
RUN pip install -r /requirements.txt -r /dev-requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt
RUN addgroup --gid ${USER_GID:-1000} apprise
RUN adduser --system --uid ${USER_UID:-1000} --ingroup apprise --home /apprise --no-create-home --disabled-password apprise

View File

@ -34,7 +34,7 @@
FROM python:3.6-buster
RUN apt-get update && \
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
RUN pip install dbus-python PyGObject
RUN pip install --no-cache-dir dbus-python PyGObject
# Apprise Setup
VOLUME ["/apprise"]
@ -45,4 +45,4 @@ ENV PYTHONPATH /apprise
ENV PYTHONPYCACHEPREFIX /apprise/__pycache__/py36
RUN pip install -r /requirements.txt -r /dev-requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt -r /dev-requirements.txt