Skip to content

Commit

Permalink
Change base from golang:latest to debian:buster (#28)
Browse files Browse the repository at this point in the history
Change base from golang:latest to debian:buster, to cut down on our image size.  This closes #27.

Starting size:

    frodo ~ $ docker image ls golang:latest
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    golang              latest              5f9d35ce5cfe        2 weeks ago         839MB

Updated size:

    frodo ~ $ docker image ls debian:buster
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    debian              buster              6d6b00c22231        3 weeks ago         114MB

That should make our image correspondingly smaller.

* Combine commands to reduce layers
  • Loading branch information
skx authored Jan 5, 2021
1 parent b0b2a45 commit c881a3f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:latest
FROM debian:buster

LABEL "com.github.actions.name"="github-action-publish-binaries"
LABEL "com.github.actions.description"="Upload artifacts when new releases are made"
Expand All @@ -10,11 +10,9 @@ LABEL repository="http://github.com/skx/github-action-publish-binaries"
LABEL homepage="http://github.com/skx/github-action-publish-binaries"
LABEL maintainer="Steve Kemp <[email protected]>"

RUN apt-get update
RUN apt-get install --yes \
ca-certificates \
curl \
jq
RUN apt-get update && \
apt-get install --yes ca-certificates curl jq && \
apt-get clean

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

Expand Down

0 comments on commit c881a3f

Please sign in to comment.