forked from vouch/vouch-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 934 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# voucher/vouch-proxy
# https://github.com/vouch/vouch-proxy
FROM golang:1.14 AS builder
LABEL maintainer="vouch@bnf.net"
RUN mkdir -p ${GOPATH}/src/github.com/vouch/vouch-proxy
WORKDIR ${GOPATH}/src/github.com/vouch/vouch-proxy
COPY . .
# RUN go-wrapper download # "go get -d -v ./..."
# RUN ./do.sh build # see `do.sh` for vouch build details
# RUN go-wrapper install # "go install -v ./..."
RUN ./do.sh goget
RUN ./do.sh gobuildstatic # see `do.sh` for vouch-proxy build details
RUN ./do.sh install
FROM scratch
LABEL maintainer="vouch@bnf.net"
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY templates/ templates/
COPY .defaults.yml .defaults.yml
# see note for /static in main.go
COPY static /static
COPY --from=builder /go/bin/vouch-proxy /vouch-proxy
EXPOSE 9090
ENTRYPOINT ["/vouch-proxy"]
HEALTHCHECK --interval=1m --timeout=5s CMD [ "/vouch-proxy", "-healthcheck" ]