mirror of
https://github.com/N0rthernL1ghts/s6-rootfs.git
synced 2024-11-23 13:03:29 +01:00
xZero707
0b8a5a5d81
There were some changes in build pipeline in just-containers/s6-overlay: - AMD64 has been replaced with multi-arch x84_64 - File name now includes version number - Archive is now xz compressed Changes: - Dockerfile for v2 is now legacy and is split into Dockerfile.legacy - Dockerfile for v3 is now Dockerfile and has different process
23 lines
794 B
Docker
23 lines
794 B
Docker
# First stage - Download s6-overlay
|
|
ARG DOWNLOADER_ALPINE_VERSION=3.15
|
|
|
|
# First stage - Download s6-overlay and unpack it
|
|
FROM --platform=${TARGETPLATFORM} alpine:${DOWNLOADER_ALPINE_VERSION} AS downloader
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
# S6 Overlay
|
|
ARG S6_OVERLAY_VERSION="v2.2.0.3"
|
|
ARG S6_OVERLAY_RELEASE="https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-${TARGETPLATFORM}.tar.gz"
|
|
|
|
RUN wget -O /tmp/s6overlay.tar.gz $(echo ${S6_OVERLAY_RELEASE} | sed 's/linux\///g' | sed 's/arm64/aarch64/g' | sed 's/arm\/v7/armhf/g') \
|
|
&& mkdir -p /s6-overlay \
|
|
&& tar xzf /tmp/s6overlay.tar.gz -C /s6-overlay
|
|
|
|
|
|
# Final stage
|
|
FROM scratch AS s6-rootfs
|
|
|
|
LABEL maintainer="Aleksandar Puharic <aleksandar@puharic.com>"
|
|
|
|
COPY --from=downloader ["/s6-overlay/", "/"] |