Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Update docker image to debian:bullseye and reduce image size (#31)
Browse files Browse the repository at this point in the history
* Update base image to debian:bullseye

Bullseye is the new stable release and superseded Buster on 2021-08-14,
see https://wiki.debian.org/DebianBuster

* Remove temporary files in /var/lib/apt/lists/

This reduces the image size by ~13MB.

Before:

    REPOSITORY   TAG                 IMAGE ID       CREATED         SIZE
    <none>       <none>              64306e5b3176   3 minutes ago   146MB

After:

    REPOSITORY   TAG                 IMAGE ID       CREATED         SIZE
    <none>       <none>              1e14b4f39b75   3 minutes ago   133MB
  • Loading branch information
tklauser authored Sep 25, 2021
1 parent c881a3f commit b9ca564
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster
FROM debian:bullseye

LABEL "com.github.actions.name"="github-action-publish-binaries"
LABEL "com.github.actions.description"="Upload artifacts when new releases are made"
Expand All @@ -12,7 +12,8 @@ LABEL maintainer="Steve Kemp <[email protected]>"

RUN apt-get update && \
apt-get install --yes ca-certificates curl jq && \
apt-get clean
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY upload-script /usr/bin/upload-script

Expand Down

0 comments on commit b9ca564

Please sign in to comment.