Nothing but s6-overlay
Go to file
xZero707 3b7a3541af
Update readme
- Add missing entrypoint directive to the example

- Add example configuration that can be passed to S6
2023-03-17 17:45:02 +01:00
.github Bump docker/bake-action from 2.2.0 to 2.3.0 2022-10-12 10:51:50 +00:00
build Update to v3.1.4.1 2023-03-17 17:15:31 +01:00
Dockerfile Bump alpine from 3.15 to 3.17 2023-02-27 11:06:56 +00:00
Dockerfile.legacy Bump alpine from 3.15 to 3.17 2023-02-27 11:06:56 +00:00
README.md Update readme 2023-03-17 17:45:02 +01:00

S6-overlay rootfs

The simplest and fastest way to get S6 supervisor in your image

Usage

COPY --from=nlss/s6-rootfs:latest ["/", "/"]

or with fixed version:

COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]

That's it!

# ---------------------
# Build root filesystem
# ---------------------
FROM scratch AS rootfs

# Copy over base files
COPY ["./rootfs", "/"]

# Install S6
COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]


# ---------------------
# Build image
# ---------------------
FROM alpine:latest

COPY --from=rootfs ["/", "/"]
RUN apk add --update --no-cache nano

# S6 configuration - not required
# See: https://github.com/just-containers/s6-overlay#customizing-s6-overlay-behaviour
ENV S6_KEEP_ENVS6_KEEP_ENV=1
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
ENV S6_CMD_RECEIVE_SIGNALS=1

# Important, this is required for S6 to work
ENTRYPOINT ["/init"]