Skip to content

Commit

Permalink
doc: change ex. to bash
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetozer committed Mar 29, 2022
1 parent 5e84629 commit f429d21
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,12 @@ Example usage
```Dockerfile
FROM debian as base
COPY --from=ghcr.io/ahmetozer/distroless-helper /bin/distroless-helper /bin/distroless-helper
RUN distroless-helper /usr/sbin/nginx /opt

RUN cp -a --parents /etc/nginx /opt/ && \
cp -a --parents /var/lib/nginx/logs/ /opt/ && \
cp -a --parents /etc/passwd /opt/ && \
cp -a --parents /etc/group /opt/ && \
cp -a --parents /var/lib/nginx/tmp/ /opt/ && \
cp -a --parents /var/log/nginx/ /opt/ &&\
cp -a --parents /run/nginx/ /opt/
RUN /bin/distroless-helper /bin/bash /opt

FROM scratch
COPY --from=base /opt/ /
ENTRYPOINT ["/usr/sbin/nginx", "-g", "daemon off;"]
USER 65534
ENTRYPOINT ["/bin/bash"]
```

For more example, you can visit [ahmetozer/containers](github.com/ahmetozer/containers)
For more example, you can visit [ahmetozer/containers](https://github.com/ahmetozer/containers)

0 comments on commit f429d21

Please sign in to comment.