alpine-s6/Dockerfile

38 lines
730 B
Docker
Raw Normal View History

2022-07-12 16:29:51 +00:00
FROM docker.io/alpine:3.16 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
2022-07-12 16:29:51 +00:00
ENV S6_OVERLAY_VERSION=v3.1.1.2
2020-08-19 10:22:01 +00:00
RUN apk --no-cache add \
2022-02-14 10:05:44 +00:00
git \
make \
binutils \
tar \
xz
2020-08-19 10:22:01 +00:00
2022-02-14 10:05:44 +00:00
RUN git clone https://github.com/just-containers/s6-overlay.git /src
WORKDIR /src
RUN git checkout "$S6_OVERLAY_VERSION"
2022-02-12 15:22:57 +00:00
2022-02-14 10:05:44 +00:00
RUN make ARCH=x86_64-linux-musl
2022-02-12 14:32:33 +00:00
2020-08-19 10:22:01 +00:00
2022-07-12 16:29:51 +00:00
FROM docker.io/alpine:3.16
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
2022-02-14 10:05:44 +00:00
COPY --from=builder /src/output/rootfs-overlay-noarch /
COPY --from=builder /src/output/rootfs-overlay-x86_64-linux-musl /
2020-08-19 10:22:01 +00:00
RUN apk --no-cache add \
syslog-ng
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"]