~ancarda/tls-redirector

ref: 0d27261aedcb33bb3c21f8892d898da96efefd88 tls-redirector/Dockerfile -rw-r--r-- 353 bytes
0d27261aMark Dain Format all code with mvdan/gofumpt 3 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"]