Skip to content

Commit 69b8fd5

Browse files
authored
Merge pull request #71 from corpobit/update-docker-workflows-go-server
Update docker workflows go server
2 parents 3b1a2f0 + 5cb3d20 commit 69b8fd5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ RUN apk add --no-cache ca-certificates tzdata
2323

2424
COPY crossview-go-server/go.mod ./
2525
ENV GOTOOLCHAIN=auto
26-
RUN go mod tidy && go mod download
26+
RUN go mod tidy && go mod download -x
2727

2828
COPY crossview-go-server/ ./
2929

30-
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /app/crossview-server ./main.go
30+
RUN go mod download && \
31+
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /app/crossview-server ./main.go
3132

3233
FROM alpine:latest
3334

0 commit comments

Comments
 (0)