bump alpine to 3.14, remove go version hack

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2021-07-02 15:29:55 +03:00
parent 7475eb428b
commit cc57d67c99
4 changed files with 3 additions and 15 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:3.13 AS mirror
FROM alpine:3.14 AS mirror
# update base image
RUN apk update && apk upgrade -a
@ -12,17 +12,6 @@ RUN cat /tmp/packages.$(uname -m) >> /tmp/packages && \
mkdir -p /mirror/$(apk --print-arch) && \
apk fetch --recursive -o /mirror/$(apk --print-arch) $(apk info; cat /tmp/packages)
# these are the repository-specific ones, if they exist
RUN for repopkgs in /tmp/packages.repo.*; do \
repo=${repopkgs##*repo.} && archspecific=/tmp/packages.$(uname -m).repo.${repo} && mergedfile=/tmp/packages.merged.${repo} && repofile=/tmp/repositories.${repo} && \
cachedir=/tmp/cache/${repo} && \
mkdir -p ${cachedir} && \
cp ${repopkgs} ${mergedfile} && \
if [ -f ${archspecific} ]; then cat ${archspecific} >> ${mergedfile}; fi && \
sed "s#alpine/[^\/]*/#alpine/${repo}/#g" /etc/apk/repositories > ${repofile} && \
apk update --repositories-file=${repofile} --cache-dir ${cachedir} && \
apk fetch --repositories-file=${repofile} --cache-dir ${cachedir} --recursive -o /mirror/$(apk --print-arch) $(cat ${mergedfile}); done
# install abuild and sudo for signing
RUN apk add --no-cache abuild sudo
@ -83,7 +72,7 @@ RUN set -e && \
cp iucode_tool /iucode_tool; \
fi
FROM alpine:3.13
FROM alpine:3.14
ARG TARGETARCH

View File

@ -49,6 +49,7 @@ gettext-dev
git
gmp-dev
gnupg
go
grep
hvtools
installkernel

View File

@ -1 +0,0 @@
go

View File

@ -1,4 +1,3 @@
gummiboot
libunwind-dev
luajit-dev
open-vm-tools