~ancarda/tls-redirector

ref: e4636a57dc63f656f5b8db32dd716c84038a09be tls-redirector/Dockerfile -rw-r--r-- 353 bytes
e4636a57Mark Dain 2.4: Nice looking HTML error pages 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:1.15.1-alpine3.12 AS builder
WORKDIR /go/src/git.sr.ht/~ancarda/tls-redirector
RUN apk add git binutils
COPY go.* ./
RUN go mod download
COPY . ./
RUN go generate ./... && go build . && strip tls-redirector

FROM alpine:3.12.0
COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
EXPOSE 80
CMD ["./tls-redirector"]