docker based auto-configurator for Caddy 2 & sequentialread.com docker-compose
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
573 B

FROM golang:1.16-alpine as build
ARG GOARCH=
ARG GO_BUILD_ARGS=
RUN mkdir /build
WORKDIR /build
RUN apk add --update --no-cache ca-certificates git
COPY go.mod go.mod
COPY go.sum go.sum
COPY main.go main.go
RUN go get
RUN go build -v $GO_BUILD_ARGS -o /build/sequentialread-caddy-config .
FROM alpine
WORKDIR /app
# COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /build/sequentialread-caddy-config /app/sequentialread-caddy-config
RUN chmod +x /app/sequentialread-caddy-config
ENTRYPOINT ["/app/sequentialread-caddy-config"]