alpine-s6/Dockerfile

32 lines
640 B
Docker

FROM alpine:3.14 AS builder
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
ARG TARGETPLATFORM
ENV S6_OVERLAY_VERSION=v2.2.0.3
ENV SHA256_amd64=a7076cf205b331e9f8479bbb09d9df77dbb5cd8f7d12e9b74920902e0c16dd98
ENV SHA256_aarch64=84f585a100b610124bb80e441ef2dc2d68ac2c345fd393d75a6293e0951ccfc5
RUN apk --no-cache add \
bash
ADD fetch-platform-rootfs /
RUN ./fetch-platform-rootfs
RUN mkdir /overlay
RUN tar -xvf s6-overlay.tar.gz -C /overlay
FROM alpine:3.14
ENV LANG=en_US.UTF-8
COPY --from=builder /overlay /
RUN apk --no-cache add \
syslog-ng
RUN apk --no-cache upgrade
ADD /rootfs /
ENTRYPOINT ["/init"]