CaddyDocker/Dockerfile

23 lines
575 B
Docker
Raw Permalink Normal View History

2022-02-19 19:38:36 +00:00
FROM docker.io/alpine:3
2020-06-18 09:47:31 +00:00
LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
2019-12-14 19:13:41 +00:00
2022-02-19 19:38:36 +00:00
RUN apk add --no-cache curl
2019-12-14 19:13:41 +00:00
2022-02-19 19:38:36 +00:00
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
2019-12-14 19:13:41 +00:00
#Validate install
2020-06-18 09:47:31 +00:00
RUN caddy version
RUN caddy list-modules
2019-12-14 19:13:41 +00:00
2020-06-18 09:47:31 +00:00
EXPOSE 80 443 2019
2022-02-19 19:38:36 +00:00
VOLUME [ "/config" ]
2019-12-14 19:13:41 +00:00
WORKDIR /srv
2021-04-21 17:42:01 +00:00
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/bin/sh", "/start.sh"]