2022-02-12 14:21:49 +00:00
|
|
|
FROM alpine:3.15 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
|
|
|
|
|
2022-02-12 14:32:33 +00:00
|
|
|
ENV S6_OVERLAY_VERSION=3.0.0.2
|
2022-02-12 15:22:57 +00:00
|
|
|
ENV SHA256_SUM_NOARCH=17880e4bfaf6499cd1804ac3a6e245fd62bc2234deadf8ff4262f4e01e3ee521
|
2022-02-12 14:32:33 +00:00
|
|
|
ENV SHA256_SUM=a4c039d1515812ac266c24fe3fe3c00c48e3401563f7f11d09ac8e8b4c2d0b0c
|
2020-08-19 10:22:01 +00:00
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
bash
|
|
|
|
|
2022-02-12 15:22:57 +00:00
|
|
|
RUN wget "https://github.com/just-containers/s6-overlay/releases/download/v$S6_OVERLAY_VERSION/s6-overlay-noarch-$S6_OVERLAY_VERSION.tar.xz"
|
|
|
|
RUN echo "$SHA256_SUM_NOARCH s6-overlay-noarch-$S6_OVERLAY_VERSION.tar.xz" | sha256sum -c - || exit 1
|
|
|
|
|
2022-02-12 14:32:33 +00:00
|
|
|
RUN wget "https://github.com/just-containers/s6-overlay/releases/download/v$S6_OVERLAY_VERSION/s6-overlay-x86_64-$S6_OVERLAY_VERSION.tar.xz"
|
|
|
|
RUN echo "$SHA256_SUM s6-overlay-x86_64-$S6_OVERLAY_VERSION.tar.xz" | sha256sum -c - || exit 1
|
|
|
|
|
2020-08-19 10:22:01 +00:00
|
|
|
RUN mkdir /overlay
|
2022-02-12 15:22:57 +00:00
|
|
|
RUN tar -Jxpf s6-overlay-noarch-$S6_OVERLAY_VERSION.tar.xz -C /overlay
|
|
|
|
RUN tar -Jxpf s6-overlay-x86_64-$S6_OVERLAY_VERSION.tar.xz -C /overlay
|
2020-08-19 10:22:01 +00:00
|
|
|
|
2022-02-12 14:32:33 +00:00
|
|
|
FROM alpine:3.15
|
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"]
|