41 lines
765 B
Docker
41 lines
765 B
Docker
FROM docker.io/alpine:3.17 AS builder
|
|
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
|
|
|
|
ENV S6_OVERLAY_VERSION=v3.1.3.0
|
|
|
|
RUN apk --no-cache add \
|
|
git \
|
|
make \
|
|
binutils \
|
|
tar \
|
|
xz
|
|
|
|
RUN git clone https://github.com/just-containers/s6-overlay.git /src
|
|
WORKDIR /src
|
|
RUN git checkout "$S6_OVERLAY_VERSION"
|
|
|
|
RUN make ARCH=x86_64-linux-musl -j4
|
|
|
|
|
|
FROM docker.io/alpine:3.17
|
|
|
|
ENV LANG=en_US.UTF-8
|
|
ENV S6_KEEP_ENV=1
|
|
ENV PATH="$PATH:/command"
|
|
ENV S6_GLOBAL_PATH="$PATH"
|
|
|
|
COPY --from=builder /src/output/rootfs-overlay-noarch /
|
|
COPY --from=builder /src/output/rootfs-overlay-x86_64-linux-musl /
|
|
|
|
RUN apk --no-cache add \
|
|
syslog-ng \
|
|
tzdata
|
|
|
|
ENV TZ=Europe/Zurich
|
|
|
|
RUN apk --no-cache upgrade --ignore alpine-baselayout
|
|
|
|
ADD /rootfs /
|
|
|
|
ENTRYPOINT ["/init"]
|