CaddyDocker/Dockerfile
Fabian Stamm 6ba1f99bbc
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Add image without and with PHP Support
2022-02-19 20:38:36 +01:00

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"]