Skip to content

Instantly share code, notes, and snippets.

@mwmahlberg
Created March 24, 2016 13:19
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 mwmahlberg/1672f8510ac437a95972 to your computer and use it in GitHub Desktop.
Save mwmahlberg/1672f8510ac437a95972 to your computer and use it in GitHub Desktop.
Basic Docker Image for Caddy + golang fcgi
:80
log stdout
startup /usr/local/bin/fcgiapp &
shutdown /usr/bin/killall fcgiapp
fastcgi / 127.0.0.1:10000
FROM alpine:latest
COPY caddy /usr/local/bin/caddy
COPY Caddyfile /etc
COPY testfcgi /usr/local/bin/fcgiapp
EXPOSE 80
ENTRYPOINT /usr/local/bin/caddy -conf="/etc/Caddyfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment