alpine-s6/Containerfile

45 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2023-12-12 17:49:03 +00:00
FROM docker.io/alpine:3.19 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
ENV S6_OVERLAY_VERSION=v3.1.6.2
ENV S6_HASH_noarch=05af2536ec4fb23f087a43ce305f8962512890d7c71572ed88852ab91d1434e3
ENV S6_HASH_aarch64=3fc0bae418a0e3811b3deeadfca9cc2f0869fb2f4787ab8a53f6944067d140ee
ENV S6_HASH_x86_64=95081f11c56e5a351e9ccab4e70c2b1c3d7d056d82b72502b942762112c03d1c
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
2023-12-12 17:49:03 +00:00
FROM docker.io/alpine:3.19
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
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"]