We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3d371 commit 1be1b46Copy full SHA for 1be1b46
1 file changed
Dockerfile
@@ -1,17 +1,13 @@
1
FROM golang:1.23.0-alpine as buildbase
2
3
-ARG CI_JOB_TOKEN
4
-
5
RUN apk add git build-base ca-certificates
6
7
WORKDIR /go/src/github.com/rarimo/verificator-svc
8
COPY go.mod .
9
COPY go.sum .
10
RUN go mod download
11
12
-RUN git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com".insteadOf https://gitlab.com
13
-RUN git config --global url."https://${CI_JOB_TOKEN}@github.com/".insteadOf https://github.com/
14
-RUN go env -w GOPRIVATE=github.com/*,gitlab.com/*
+COPY . .
15
16
RUN go mod tidy && go mod vendor
17
RUN CGO_ENABLED=1 GO111MODULE=on GOOS=linux GOOS=linux go build -o /usr/local/bin/verificator-svc /go/src/github.com/rarimo/verificator-svc
0 commit comments