Created
March 24, 2016 13:19
-
-
Save mwmahlberg/1672f8510ac437a95972 to your computer and use it in GitHub Desktop.
Basic Docker Image for Caddy + golang fcgi
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
:80 | |
log stdout | |
startup /usr/local/bin/fcgiapp & | |
shutdown /usr/bin/killall fcgiapp | |
fastcgi / 127.0.0.1:10000 |
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 | |
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