Dockerfile aktualisiert
Some checks failed
Docker Build / Build amd64 & arm64 (push) Failing after 9s
Some checks failed
Docker Build / Build amd64 & arm64 (push) Failing after 9s
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -7,9 +7,7 @@ ARG S6_OVERLAY_VERSION="3.2.2.0"
|
||||
ARG ROOTFS=/root-out
|
||||
ARG REL=v3.23
|
||||
ARG MIRROR=http://dl-cdn.alpinelinux.org/alpine
|
||||
ARG PACKAGES=alpine-baselayout,alpine-keys,apk-tools,busybox,libc-utils
|
||||
|
||||
RUN apk add --no-cache bash xz curl ca-certificates
|
||||
ARG PACKAGES=alpine-baselayout,alpine-keys,apk-tools,busybox,libc-utils,bash,xz,curl,ca-certificates
|
||||
|
||||
# map arch
|
||||
RUN case "${TARGETARCH}" in \
|
||||
@@ -19,11 +17,7 @@ RUN case "${TARGETARCH}" in \
|
||||
esac
|
||||
|
||||
# build rootfs
|
||||
RUN mkdir -p "${ROOTFS}/etc/apk" && \
|
||||
echo "${MIRROR}/${REL}/main" > "${ROOTFS}/etc/apk/repositories" && \
|
||||
echo "${MIRROR}/${REL}/community" >> "${ROOTFS}/etc/apk/repositories" && \
|
||||
apk --root "${ROOTFS}" --no-cache --keys-dir /etc/apk/keys add ${PACKAGES//,/ } && \
|
||||
sed -i 's/^root::/root:!:/' "${ROOTFS}/etc/shadow"
|
||||
RUN apk add --no-cache bash xz ${PACKAGES//,/ }
|
||||
|
||||
# s6 overlay
|
||||
RUN ARCH="$(cat /arch)" && \
|
||||
|
||||
Reference in New Issue
Block a user