We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e05e9ef + 8fb17e3 commit c9008c1Copy full SHA for c9008c1
1 file changed
Dockerfile
@@ -1,7 +1,10 @@
1
FROM golang:1.16 as builder
2
WORKDIR /app
3
COPY go.mod go.mod
4
-RUN go mod tidy && go mod download
+RUN go get github.com/prometheus/client_golang/prometheus && \
5
+ go get github.com/prometheus/client_golang/prometheus/promhttp && \
6
+ go get github.com/strongswan/govici/vici
7
+# go mod download
8
COPY app /app
9
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
10
0 commit comments