Skip to content

Instantly share code, notes, and snippets.

@r1w1s1
Last active August 29, 2016 21:33
Show Gist options
  • Save r1w1s1/08fd69f931b13953cdc60076ee6e848a to your computer and use it in GitHub Desktop.
Save r1w1s1/08fd69f931b13953cdc60076ee6e848a to your computer and use it in GitHub Desktop.
FROM centos:7
MAINTAINER Ricardson Williams <ricardsonwilliams@gmail.com>
RUN \
yum -y update \
&& yum -y install \
tar \
which \
&& yum clean all \
&& 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