mirror of
https://github.com/N0rthernL1ghts/s6-rootfs.git
synced 2024-11-27 04:16:47 +01:00
Update with instructions
This commit is contained in:
parent
2aae9c2fc9
commit
9ee5815ee6
37
README.md
37
README.md
|
@ -1 +1,38 @@
|
||||||
### S6-overlay rootfs
|
### S6-overlay rootfs
|
||||||
|
|
||||||
|
The simplest and fastest way to get S6 supervisor in your image
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
```Docker
|
||||||
|
COPY --from=nlss/s6-rootfs:latest ["/", "/"]
|
||||||
|
```
|
||||||
|
or with fixed version:
|
||||||
|
```Docker
|
||||||
|
COPY --from=nlss/s6-rootfs:3.1.2.1 ["/", "/"]
|
||||||
|
```
|
||||||
|
|
||||||
|
That's it!
|
||||||
|
|
||||||
|
###### Recommended way to integrate with your image (example)
|
||||||
|
```Docker
|
||||||
|
# ---------------------
|
||||||
|
# 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user