CaddyDocker/Dockerfile

23 lines
575 B
Docker

FROM docker.io/alpine:3
LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
RUN apk add --no-cache curl
RUN curl -o /usr/bin/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64&p=github.com%2Fcaddy-dns%2Fcloudflare&p=github.com%2FRussellLuo%2Fcaddy-ext%2Fratelimit&p=github.com%2Ftechknowlogick%2Fcertmagic-s3&idempotency=81742055656173"
RUN chmod +x /usr/bin/caddy
#Validate install
RUN caddy version
RUN caddy list-modules
EXPOSE 80 443 2019
VOLUME [ "/config" ]
WORKDIR /srv
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/bin/sh", "/start.sh"]