Update Dockerfile
This commit is contained in:
parent
8e9abc1ef7
commit
066faed3e0
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ COPY . .
|
||||||
|
|
||||||
RUN go get -d -v ./...
|
RUN go get -d -v ./...
|
||||||
|
|
||||||
RUN go build -a -installsuffix -ldflags="-w -s -X $I_PACKAGE.GitCommitShort=$CI_COMMIT_SHORT_SHA -X $I_PACKAGE.GitBranch=$CI_COMMIT_BRANCH" -o app .
|
RUN go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.GitCommitShort=$CI_COMMIT_SHORT_SHA -X $I_PACKAGE.GitBranch=$CI_COMMIT_BRANCH" -o app .
|
||||||
|
|
||||||
FROM scratch as production
|
FROM scratch as production
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=builder /go/src/git.ucode.space/goshorly/app /app
|
COPY --from=builder /go/src/git.ucode.space/goshorly/app /app
|
||||||
ENTRYPOINT [ "/app" ]
|
ENTRYPOINT [ "/app" ]
|
||||||
|
|
Loading…
Reference in a new issue