~ancarda/tls-redirector

ref: 9cae1746f7e526c34409fd48500df44740e53b7f tls-redirector/Dockerfile -rw-r--r-- 386 bytes
9cae1746Mark Dain Don't run `go mod download' to build container 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:1.16.0-alpine3.13 AS builder
WORKDIR /go/src/git.sr.ht/~ancarda/tls-redirector
RUN apk add git binutils
COPY . ./
RUN go build . && strip tls-redirector

FROM alpine:3.12.3
RUN apk add curl
COPY --from=builder /go/src/git.sr.ht/~ancarda/tls-redirector/tls-redirector .
EXPOSE 80
CMD ["./tls-redirector"]
HEALTHCHECK --interval=10s CMD curl --fail http://localhost || exit 1