forked from vouch/vouch-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.alpine
31 lines (25 loc) · 958 Bytes
/
Dockerfile.alpine
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
31
# voucher/vouch-proxy
# https://github.com/vouch/vouch-proxy
FROM golang:1.14 AS builder
LABEL maintainer="[email protected]"
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 alpine:latest
LABEL maintainer="[email protected]"
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 do.sh /do.sh
COPY --from=builder /go/bin/vouch-proxy /vouch-proxy
EXPOSE 9090
ENTRYPOINT ["/vouch-proxy"]
HEALTHCHECK --interval=1m --timeout=5s CMD [ "/vouch-proxy", "-healthcheck" ]