Clean up apt lists after installation in Dockerfile (#940)

This commit is contained in:
Peter Dave Hello 2023-09-05 02:43:34 +08:00 committed by GitHub
parent f84d604a22
commit b34654bc3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,8 @@
# Base
FROM python:3.10-buster
RUN apt-get update && \
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir dbus-python PyGObject
# Apprise Setup

View File

@ -33,7 +33,8 @@
# Base
FROM python:3.11-buster
RUN apt-get update && \
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir dbus-python PyGObject
# Apprise Setup

View File

@ -33,7 +33,8 @@
# Base
FROM python:3.6-buster
RUN apt-get update && \
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash
apt-get install -y libdbus-1-dev libgirepository1.0-dev build-essential musl-dev bash && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir dbus-python PyGObject
# Apprise Setup