Skip to content

Instantly share code, notes, and snippets.

@jahands
Created June 5, 2016 21:16
Show Gist options
  • Save jahands/4df18f9126d2057ea93c5ab6aaf72f77 to your computer and use it in GitHub Desktop.
Save jahands/4df18f9126d2057ea93c5ab6aaf72f77 to your computer and use it in GitHub Desktop.
Caddy custom Dockerfile
FROM ubuntu:16.04
RUN apt-get update -q \
&& apt-get install wget -yq \
&& rm -rf /var/lib/apt/lists/*
RUN wget -qO- https://getcaddy.com | bash -s git
EXPOSE 443 80
VOLUME ["/etc/caddy","/root/.caddy","/var/www"]
ENTRYPOINT /usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment