Skip to content

Instantly share code, notes, and snippets.

@lukaszlach
Created March 1, 2019 18:51
Show Gist options
  • Save lukaszlach/7c7b6de247055e2571914d04cb7f0a4e to your computer and use it in GitHub Desktop.
Save lukaszlach/7c7b6de247055e2571914d04cb7f0a4e to your computer and use it in GitHub Desktop.
Dockerfile webproc
FROM debian:stretch-slim
RUN apt-get update && \
apt-get install -y nginx wget && \
rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/jpillora/webproc/releases/download/0.2.2/webproc_linux_amd64.gz && \
zcat webproc_linux_amd64.gz > /webproc && \
rm -f webproc_linux_amd64.gz && \
chmod +x /webproc
ENTRYPOINT ["/webproc", "--config", "/etc/nginx/nginx.conf,/etc/nginx/sites-enabled/default", "--"]
CMD ["nginx", "-g", "daemon off;"]
EXPOSE 8080/tcp 80/tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment