Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

34 lignes
655 B

FROM golang:1.13-alpine as builder
RUN apk add --no-cache git gcc musl-dev
RUN mkdir /www /caddy
COPY builder.sh /usr/bin/builder.sh
ARG version="1.0.5"
RUN VERSION=${version} /bin/sh /usr/bin/builder.sh
FROM alpine:latest
ENV CADDY_VERSION=1.0.5
ENV CADDYPATH=/caddy/certs
RUN apk add --no-cache \
ca-certificates \
git \
mailcap \
openssh-client \
tzdata
COPY --from=builder /install/caddy /usr/bin/caddy
RUN /usr/bin/caddy -version
RUN /usr/bin/caddy -plugins
EXPOSE 80 443 2015
VOLUME /root/.caddy /www
WORKDIR /www
COPY Caddyfile /caddy/Caddyfile
CMD ["caddy","--conf", "/caddy/Caddyfile", "--log", "stdout", "--agree"]