~ancarda/tls-redirector

ref: 37d9da2a47bf54535f8ef5a0a7771f1d4fd29ba3 tls-redirector/Dockerfile -rw-r--r-- 353 bytes
37d9da2aMark Dain Bump dependencies a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:1.15.6-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.3
COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
EXPOSE 80
CMD ["./tls-redirector"]