Created
October 4, 2019 19:02
-
-
Save wmuizelaar/940b56da3d973f40669d82cbbdf6624a to your computer and use it in GitHub Desktop.
s6-overlay reproduce for gvisor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
# install all the packages needed | |
RUN apk update && \ | |
apk upgrade && \ | |
apk add --no-cache \ | |
ca-certificates \ | |
nginx \ | |
curl \ | |
jq \ | |
&& curl -L -s https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-amd64.tar.gz \ | |
| tar xvzf - -C / | |
RUN mkdir -p /etc/services.d/nginx/ | |
### configuration | |
COPY run /etc/services.d/nginx/run | |
ENTRYPOINT ["/init"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/execlineb -P | |
/usr/sbin/nginx -g "daemon off; pid /var/run/nginx.pid;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment