Skip to content

Commit ba1014b

Browse files
committed
Add pkg cleanup to reduce image size
1 parent eff7377 commit ba1014b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Containerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ LABEL org.opencontainers.image.title="Sonarr" \
2323

2424
# Install Sonarr from FreeBSD packages
2525
RUN pkg update && \
26-
pkg install -y ${PACKAGES}
26+
pkg install -y ${PACKAGES} && \
27+
pkg clean -ay && \
28+
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*
2729

2830
# Download and install Sonarr (fetch latest v4-stable FreeBSD URL from API)
2931
RUN mkdir -p /usr/local/share/sonarr && \

0 commit comments

Comments
 (0)