Skip to content
/ sir Public

Commit 42cf804

Browse files
committed
Remove unused apt packages from the Dockerfiles
I was able to build the images fine after removing these. I guess everything has a wheel now except for ujson, which only requires build-essential. There are no crontabs in the repo, so I removed cron. git isn't required either. If these are needed for some one-off sysadmin task in the future, they can always be installed manually.
1 parent 7b776d0 commit 42cf804

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

Dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,8 @@ RUN apt-get update && \
2222
apt-get install -y --no-install-recommends \
2323
build-essential \
2424
ca-certificates \
25-
cron \
2625
curl \
27-
git \
28-
gnupg \
29-
libz-dev \
30-
libpq-dev \
31-
libffi-dev \
32-
libssl-dev \
33-
libxml2-dev \
34-
libxslt1-dev && \
26+
gnupg && \
3527
rm -rf /var/lib/apt/lists/*
3628

3729
# PostgreSQL client

docker/Dockerfile.test

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
1111
RUN apt-get update && \
1212
apt-get install -y --no-install-recommends \
1313
build-essential \
14-
ca-certificates \
15-
cron \
16-
git \
17-
libz-dev \
18-
libpq-dev \
19-
libffi-dev \
20-
libssl-dev \
21-
libxml2-dev \
22-
libsqlite3-dev \
23-
libxslt1-dev && \
14+
ca-certificates && \
2415
rm -rf /var/lib/apt/lists/*
2516
COPY requirements.txt /code/
2617
COPY requirements_dev.txt /code/

0 commit comments

Comments
 (0)