Skip to content

Instantly share code, notes, and snippets.

@furkanmustafa
Created March 29, 2017 08:43
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 furkanmustafa/e6cbec4961791e4dc3945eb2ea9f58e6 to your computer and use it in GitHub Desktop.
Save furkanmustafa/e6cbec4961791e4dc3945eb2ea9f58e6 to your computer and use it in GitHub Desktop.
Caddy.dockerfile
FROM alpine:3.5
ARG plugins=git,filemanager,cors,jwt
RUN apk add --update openssh-client git tar curl
RUN curl --silent --show-error --fail --location --header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
"https://caddyserver.com/download/build?os=linux&arch=amd64&features=${plugins}" \
| tar --no-same-owner -C /usr/bin/ -xz caddy && \
chmod 0755 /usr/bin/caddy && \
addgroup -S caddy && \
/usr/bin/caddy -version
EXPOSE 80 443 2015
VOLUME /srv
WORKDIR /srv
ENTRYPOINT ["/usr/bin/caddy"]
CMD ["--conf", "/etc/Caddyfile"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment