25 lines
606 B
Docker
25 lines
606 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 Caddyfile /etc/Caddyfile
|
|
|
|
COPY start.sh /start.sh
|
|
RUN chmod +x /start.sh
|
|
|
|
CMD ["/bin/sh", "/start.sh"]
|