Created
March 29, 2017 08:43
-
-
Save furkanmustafa/e6cbec4961791e4dc3945eb2ea9f58e6 to your computer and use it in GitHub Desktop.
Caddy.dockerfile
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: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