Skip to content

Commit 0f1e49c

Browse files
Merge pull request #558 from isayme/issue/docker-image-size
clear apt cache to reduce docker image size
2 parents fe0d3bb + f2c2df8 commit 0f1e49c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ LABEL org.opencontainers.image.source=https://github.com/SierraSoftworks/github-
88
LABEL org.opencontainers.image.description="Backup your GitHub repositories and releases automatically"
99
LABEL org.opencontainers.image.licenses=MIT
1010

11-
RUN apt-get update && apt-get install -y \
12-
openssl
11+
RUN apt-get update && \
12+
apt-get install -y openssl && \
13+
apt-get clean && \
14+
rm -rf /var/lib/apt/lists/*
1315

1416
ADD ./github-backup /usr/local/bin/github-backup
1517

0 commit comments

Comments
 (0)