This commit is contained in:
parent
5836e1bddf
commit
f8af0908d1
1 changed files with 4 additions and 1 deletions
|
@ -6,8 +6,11 @@ ENV ALPINE_MIRROR https://uk.alpinelinux.org/alpine/v${ALPINE_SERIES}
|
||||||
ENV ALPINE_ARCH x86_64
|
ENV ALPINE_ARCH x86_64
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN set -x; apk add --no-cache curl &&\
|
RUN set -xo pipefail; apk add --no-cache curl gnupg &&\
|
||||||
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||||
|
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
|
||||||
|
gpg --recv 0482D84022F52DF1C4E7CD43293ACD0907D9495A &&\
|
||||||
|
gpg --verify alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||||
mkdir /dest &&\
|
mkdir /dest &&\
|
||||||
tar -C /dest -xvzf alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
tar -C /dest -xvzf alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||||
sed -i "s#http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_SERIES}#${ALPINE_MIRROR}#g" /dest/etc/apk/repositories
|
sed -i "s#http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_SERIES}#${ALPINE_MIRROR}#g" /dest/etc/apk/repositories
|
||||||
|
|
Loading…
Reference in a new issue