Skip to content

Commit

Permalink
fix werf
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Mar 7, 2024
1 parent db41f59 commit 3243db4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM golang:1.19-alpine as buildbase

WORKDIR /go/src/github.com/rarimo/evm-worldcoin-saver-svc
COPY vendor .
COPY . .

ENV GO111MODULE="on"
ENV CGO_ENABLED=1
ENV GOOS="linux"

RUN apk add build-base
RUN go mod tidy
RUN go mod vendor
RUN go build -o /usr/local/bin/evm-worldcoin-saver-svc github.com/rarimo/evm-worldcoin-saver-svc

###
Expand Down
5 changes: 2 additions & 3 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ shell:
- go env -w GOPRIVATE=github.com/*
- go env -w GONOSUMDB=github.com/*
- go env -w GONOPROXY=github.com/*
- cd /go/src/github.com/rarimo/evm-worldcoin-saver-svc
- go mod tidy
- go mod vendor
setup:
- export GO111MODULE=on
- export CGO_ENABLED=1
- export GOOS=linux
- go mod tidy
- go mod vendor
- cd /go/src/github.com/rarimo/evm-worldcoin-saver-svc
- go build -o /usr/local/bin/evm-worldcoin-saver-svc /go/src/github.com/rarimo/evm-worldcoin-saver-svc

Expand Down

0 comments on commit 3243db4

Please sign in to comment.