Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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