Dockerfile aktualisiert
Some checks failed
Docker Build / Build amd64 & arm64 (push) Failing after 11s
Some checks failed
Docker Build / Build amd64 & arm64 (push) Failing after 11s
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,6 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM alpine:3.23 AS rootfs-stage
|
||||
FROM alpine:3.23
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG S6_OVERLAY_VERSION="3.2.2.0"
|
||||
@@ -20,22 +20,19 @@ RUN case "${TARGETARCH}" in \
|
||||
RUN apk add --no-cache ${PACKAGES//,/ }
|
||||
|
||||
# s6 overlay
|
||||
RUN mkdir -p /root-out && \
|
||||
ARCH="$(cat /arch)" && \
|
||||
RUN ARCH="$(cat /arch)" && \
|
||||
curl -fsSL https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz \
|
||||
| tar -C "${ROOTFS}" -Jxpf - && \
|
||||
| tar -C / -Jxpf - && \
|
||||
curl -fsSL https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${ARCH}.tar.xz \
|
||||
| tar -C "${ROOTFS}" -Jxpf -
|
||||
| tar -C / -Jxpf -
|
||||
|
||||
# add s6 optional symlinks
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
|
||||
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
|
||||
RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
|
||||
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
|
||||
RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
|
||||
|
||||
# Runtime stage
|
||||
FROM scratch
|
||||
COPY --from=rootfs-stage /root-out/ /
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG MODS_VERSION="v3"
|
||||
|
||||
Reference in New Issue
Block a user