Skip to content

Commit c9008c1

Browse files
authored
Merge pull request #12 from jlti-dev/dev
fix build
2 parents e05e9ef + 8fb17e3 commit c9008c1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM golang:1.16 as builder
22
WORKDIR /app
33
COPY go.mod go.mod
4-
RUN go mod tidy && go mod download
4+
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
58
COPY app /app
69
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
710

0 commit comments

Comments
 (0)