From dc61eab6a1c78dddc59131b75d8d64f52b9aae70 Mon Sep 17 00:00:00 2001 From: Travis Cardwell Date: Sun, 31 Jul 2022 08:33:19 +0900 Subject: [PATCH] Upgrade Alpine packages (#23) 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. --- Earthfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Earthfile b/Earthfile index 3a7ae5c..6939142 100644 --- a/Earthfile +++ b/Earthfile @@ -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 \