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 ac214b3 commit f208370Copy full SHA for f208370
Dockerfile
@@ -2,7 +2,7 @@ FROM openshift/origin-release:golang-1.15 AS build
2
WORKDIR /go/src
3
COPY . /go/src
4
RUN GIT_COMMIT=$(git rev-parse HEAD) && \
5
- CGO_ENABLED=0 GOOS=linux go build -a \
+ CGO_ENABLED=0 GOOS=linux go build -a -mod=readonly \
6
-ldflags "-X github.com/redhat-developer/gitops-backend/pkg/health.GitRevision=${GIT_COMMIT}" ./cmd/backend-http
7
8
FROM registry.access.redhat.com/ubi8/ubi-minimal
go.mod
@@ -1,6 +1,6 @@
1
module github.com/redhat-developer/gitops-backend
-go 1.14
+go 1.15
require (
github.com/emicklei/go-restful v2.12.0+incompatible // indirect
0 commit comments