alpine-s6/Dockerfile

32 lines
644 B
Docker
Raw Normal View History

FROM alpine:3.13.1 AS builder
2018-02-16 06:56:01 +00:00
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
2017-01-10 10:05:37 +00:00
2020-08-19 10:22:01 +00:00
ARG TARGETPLATFORM
ENV S6_OVERLAY_VERSION=v2.2.0.1
ENV SHA256_amd64=2dcb59b63d1d0f5f056d4e10d6cbae21a9c216e130080d3b5aaa8e7325ac571b
ENV SHA256_aarch64=500476317b688b314fd64d3cb8b38114c6d011baaa124a16b01bdf284cf0fb76
2020-08-19 10:22:01 +00:00
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.13.1
2020-08-19 10:22:01 +00:00
2019-02-05 08:33:47 +00:00
ENV LANG=en_US.UTF-8
2020-08-19 10:22:01 +00:00
COPY --from=builder /overlay /
RUN apk --no-cache add \
syslog-ng
2017-01-10 10:05:37 +00:00
2017-10-06 16:35:27 +00:00
RUN apk --no-cache upgrade
2017-02-15 13:51:29 +00:00
ADD /rootfs /
2017-01-10 10:05:37 +00:00
ENTRYPOINT ["/init"]