mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
bump alpine to 3.14, remove go version hack
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
7475eb428b
commit
cc57d67c99
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.13 AS mirror
|
FROM alpine:3.14 AS mirror
|
||||||
|
|
||||||
# update base image
|
# update base image
|
||||||
RUN apk update && apk upgrade -a
|
RUN apk update && apk upgrade -a
|
||||||
@ -12,17 +12,6 @@ RUN cat /tmp/packages.$(uname -m) >> /tmp/packages && \
|
|||||||
mkdir -p /mirror/$(apk --print-arch) && \
|
mkdir -p /mirror/$(apk --print-arch) && \
|
||||||
apk fetch --recursive -o /mirror/$(apk --print-arch) $(apk info; cat /tmp/packages)
|
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
|
# install abuild and sudo for signing
|
||||||
RUN apk add --no-cache abuild sudo
|
RUN apk add --no-cache abuild sudo
|
||||||
|
|
||||||
@ -83,7 +72,7 @@ RUN set -e && \
|
|||||||
cp iucode_tool /iucode_tool; \
|
cp iucode_tool /iucode_tool; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FROM alpine:3.13
|
FROM alpine:3.14
|
||||||
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ gettext-dev
|
|||||||
git
|
git
|
||||||
gmp-dev
|
gmp-dev
|
||||||
gnupg
|
gnupg
|
||||||
|
go
|
||||||
grep
|
grep
|
||||||
hvtools
|
hvtools
|
||||||
installkernel
|
installkernel
|
||||||
|
@ -1 +0,0 @@
|
|||||||
go
|
|
@ -1,4 +1,3 @@
|
|||||||
gummiboot
|
|
||||||
libunwind-dev
|
libunwind-dev
|
||||||
luajit-dev
|
luajit-dev
|
||||||
open-vm-tools
|
open-vm-tools
|
||||||
|
Loading…
Reference in New Issue
Block a user