~ancarda/tls-redirector

ref: 1141e59c8781110f93144a1c0fa51af0631dfa74 tls-redirector/Dockerfile -rw-r--r-- 419 bytes
1141e59cMark Dain Remove io/ioutil (Deprecated) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM golang:1.16.0-alpine3.13 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 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