Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit f77b956

Browse files
cleanup apt-get install to reduce image size
1 parent 3e2b754 commit f77b956

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ ARG DEBIAN_FRONTEND="noninteractive"
1616
RUN \
1717
echo "**** install packages ****" && \
1818
apt-get update && \
19-
apt-get install -y \
19+
apt-get install -y --no-install-recommends \
2020
binutils \
2121
jsvc \
2222
libcap2 \
2323
logrotate \
2424
mongodb-server \
25-
openjdk-11-jre-headless \
26-
wget && \
25+
openjdk-11-jre-headless && \
2726
echo "**** install unifi ****" && \
2827
if [ -z ${UNIFI_VERSION+x} ]; then \
2928
UNIFI_VERSION=$(curl -sX GET http://dl-origin.ubnt.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \

Dockerfile.aarch64

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ ARG DEBIAN_FRONTEND="noninteractive"
1616
RUN \
1717
echo "**** install packages ****" && \
1818
apt-get update && \
19-
apt-get install -y \
19+
apt-get install -y --no-install-recommends \
2020
binutils \
2121
jsvc \
2222
libcap2 \
2323
logrotate \
2424
mongodb-server \
25-
openjdk-11-jre-headless \
26-
wget && \
25+
openjdk-11-jre-headless && \
2726
echo "**** install unifi ****" && \
2827
if [ -z ${UNIFI_VERSION+x} ]; then \
2928
UNIFI_VERSION=$(curl -sX GET http://dl-origin.ubnt.com/unifi/debian/dists/${UNIFI_BRANCH}/ubiquiti/binary-amd64/Packages \

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ app_setup_block: |
7171
7272
# changelog
7373
changelogs:
74+
- { date: "02.05.23:", desc: "Cleanup `apt-get install` during build to reduce image size."}
7475
- { date: "18.03.23:", desc: "Add mongoless branch."}
7576
- { date: "10.03.23:", desc: "Test writing to /run/unifi and symlink to /config/run if it fails."}
7677
- { date: "20.02.23:", desc: "Migrate to s6v3, install deb package on build, fix permissions."}

0 commit comments

Comments
 (0)