32 lines
640 B
Docker
32 lines
640 B
Docker
FROM alpine:3.12 AS builder
|
|
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
ENV S6_OVERLAY_VERSION=v2.1.0.2
|
|
ENV SHA256_amd64=52460473413601ff7a84ae690b161a074217ddc734990c2cdee9847166cf669e
|
|
ENV SHA256_aarch64=6783da208a23141e09cf9e02e923c4f01555b83d5cb33bf32d226b4b1edbaf7c
|
|
|
|
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.12
|
|
|
|
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"]
|