Skip to content

Commit

Permalink
Clean up apt lists after installation in Dockerfile (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored Sep 4, 2023
1 parent f84d604 commit b34654b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.py310
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.py311
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.py36
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b34654b

Please sign in to comment.