Skip to content

Commit

Permalink
Upgrade Alpine packages (utdemir#23)
Browse files Browse the repository at this point in the history
When building an image, the Alpine package index is updated in order to
install various dependencies.  The versions installed depend on the
state of the package index at that time.  One therefore does not
necessarily get the same packages when building `ghc-musl` images at
different times; images are not reproducible in this way.  This commit
adds a command to upgrade any already-installed packages after the
package index is updated.  This ensures that the latest packages are
used, and that the already-installed packages are consistent with the
versions of newly added packages.
  • Loading branch information
TravisCardwell committed Jul 30, 2022
1 parent b4df8b9 commit dc61eab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARG BASE_TAG=utdemir/ghc-musl:v${GHC_MUSL_VERSION}-
base-system:
FROM alpine:$ALPINE_VERSION
RUN apk update \
&& apk upgrade \
&& apk add \
autoconf automake bash binutils-gold curl dpkg fakeroot file \
findutils g++ gcc git make perl shadow tar xz \
Expand Down

0 comments on commit dc61eab

Please sign in to comment.