Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit 09226a2

Browse files
authored
Merge pull request #1 from khrm/master
Fix for redhat go toolset 1.4
2 parents 9cb7d65 + 8fdb8f2 commit 09226a2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ FROM image-registry.openshift-image-registry.svc:5000/openshift/golang:latest as
33
WORKDIR /build
44
ADD . /build/
55

6-
RUN export GARCH="$(uname -m)" && if [[ ${GARCH} == "x86_64" ]]; then export GARCH="amd64"; fi && GOOS=linux GOARCH=${GARCH} CGO_ENABLED=0 go build -mod=vendor -o api-server .
6+
7+
RUN mkdir /tmp/cache
8+
RUN export GARCH="$(uname -m)" && if [[ ${GARCH} == "x86_64" ]]; then export GARCH="amd64"; fi && GOOS=linux GOARCH=${GARCH} CGO_ENABLED=0 GOCACHE=/tmp/cache go build -mod=vendor -v -o /tmp/api-server .
79

810
FROM scratch
911

1012
WORKDIR /app
11-
COPY --from=builder /build/api-server /app/api-server
13+
COPY --from=builder /tmp/api-server /app/api-server
1214

1315
CMD [ "/app/api-server" ]

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module github.com/sthaha/vote-api-server
1+
module github.com/openshift/pipelines-vote-api
22

3-
go 1.13
3+
go 1.14
44

55
require github.com/gin-gonic/gin v1.4.0

vendor/modules.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3
22
github.com/gin-contrib/sse
33
# github.com/gin-gonic/gin v1.4.0
4+
## explicit
45
github.com/gin-gonic/gin
56
github.com/gin-gonic/gin/binding
67
github.com/gin-gonic/gin/internal/json

0 commit comments

Comments
 (0)