2024-12-10 10:35:25 +00:00
|
|
|
FROM docker.io/alpine:3.21 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
|
|
|
RUN apk --no-cache add \
|
2023-12-12 23:55:09 +00:00
|
|
|
curl \
|
2022-02-14 10:05:44 +00:00
|
|
|
tar \
|
|
|
|
xz
|
2020-08-19 10:22:01 +00:00
|
|
|
|
2023-12-12 23:55:09 +00:00
|
|
|
RUN mkdir /overlay
|
|
|
|
|
2024-12-10 10:35:25 +00:00
|
|
|
ENV S6_OVERLAY_VERSION=v3.2.0.2
|
|
|
|
ENV S6_HASH_noarch=6dbcde158a3e78b9bb141d7bcb5ccb421e563523babbe2c64470e76f4fd02dae
|
|
|
|
ENV S6_HASH_aarch64=8b22a2eaca4bf0b27a43d36e65c89d2701738f628d1abd0cea5569619f66f785
|
|
|
|
ENV S6_HASH_x86_64=59289456ab1761e277bd456a95e737c06b03ede99158beb24f12b165a904f478
|
2023-12-12 23:55:09 +00:00
|
|
|
|
|
|
|
RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-noarch.tar.xz
|
|
|
|
RUN echo "$S6_HASH_noarch s6-overlay-noarch.tar.xz" | sha256sum -c - || exit 1
|
|
|
|
RUN tar xf s6-overlay-noarch.tar.xz -C /overlay --strip 1
|
2022-02-12 15:22:57 +00:00
|
|
|
|
2023-12-12 23:55:09 +00:00
|
|
|
RUN curl -L -O https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-$(arch).tar.xz
|
|
|
|
RUN eval "echo \"\${S6_HASH_$(arch)} s6-overlay-$(arch).tar.xz\" | sha256sum -c -" || exit 1
|
|
|
|
RUN tar xf s6-overlay-$(arch).tar.xz -C /overlay --strip 1
|
2022-02-12 14:32:33 +00:00
|
|
|
|
2020-08-19 10:22:01 +00:00
|
|
|
|
2024-12-10 10:35:25 +00:00
|
|
|
FROM docker.io/alpine:3.21
|
2020-08-19 10:22:01 +00:00
|
|
|
|
2019-02-05 08:33:47 +00:00
|
|
|
ENV LANG=en_US.UTF-8
|
2022-02-14 10:05:44 +00:00
|
|
|
ENV S6_KEEP_ENV=1
|
|
|
|
ENV PATH="$PATH:/command"
|
|
|
|
ENV S6_GLOBAL_PATH="$PATH"
|
2020-08-19 10:22:01 +00:00
|
|
|
|
2023-12-12 23:55:09 +00:00
|
|
|
COPY --from=builder /overlay /
|
2020-08-19 10:22:01 +00:00
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
2023-12-12 17:49:03 +00:00
|
|
|
syslog-ng \
|
|
|
|
tzdata
|
2022-11-23 12:24:47 +00:00
|
|
|
|
|
|
|
ENV TZ=Europe/Zurich
|
2017-01-10 10:05:37 +00:00
|
|
|
|
2022-07-12 16:34:28 +00:00
|
|
|
RUN apk --no-cache upgrade --ignore alpine-baselayout
|
2017-10-06 16:35:27 +00:00
|
|
|
|
2017-02-15 13:51:29 +00:00
|
|
|
ADD /rootfs /
|
|
|
|
|
2017-01-10 10:05:37 +00:00
|
|
|
ENTRYPOINT ["/init"]
|