mirror of
https://github.com/N0rthernL1ghts/s6-rootfs.git
synced 2024-11-23 09:41:10 +01:00
Nothing but s6-overlay
211212d03f
Bumps alpine from 3.15 to 3.17. --- updated-dependencies: - dependency-name: alpine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
build | ||
Dockerfile | ||
Dockerfile.legacy | ||
README.md |
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!
Recommended way to integrate with your image (example)
# ---------------------
# 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