Skip to content

Instantly share code, notes, and snippets.

@r1w1s1
Created July 7, 2016 14:11
Show Gist options
  • Save r1w1s1/f1ce4a1622a97f85733fad9a9abe2bd9 to your computer and use it in GitHub Desktop.
Save r1w1s1/f1ce4a1622a97f85733fad9a9abe2bd9 to your computer and use it in GitHub Desktop.
FROM alpine:3.4
MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
RUN \
apk add --no-cache \
tar \
which \
bash \
curl \
&& curl https://getcaddy.com | bash
VOLUME /srv
WORKDIR /srv
ADD Caddyfile /etc/Caddyfile
ADD index.html /srv/index.html
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment