Skip to content

Instantly share code, notes, and snippets.

@wmuizelaar
Created October 4, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmuizelaar/940b56da3d973f40669d82cbbdf6624a to your computer and use it in GitHub Desktop.
Save wmuizelaar/940b56da3d973f40669d82cbbdf6624a to your computer and use it in GitHub Desktop.
s6-overlay reproduce for gvisor
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"]
#!/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