Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yisier committed Jun 2, 2023
1 parent 691a4d0 commit 59a7a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.npc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.15 as builder
ARG GOPROXY=direct
ENV GOPROXY=https://proxy.golang.org,direct
WORKDIR /go/src/ehang.io/nps
COPY . .
RUN go get -d -v ./...
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.nps
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM golang:1.15 as builder
ARG GOPROXY=direct
ENV GOPROXY=https://proxy.golang.org,direct
WORKDIR /go/src/ehang.io/nps
COPY . .
RUN go get -d -v ./...
RUN go get -d -v ./...
RUN CGO_ENABLED=0 go build -ldflags="-w -s -extldflags -static" ./cmd/nps/nps.go

FROM scratch
Expand Down

0 comments on commit 59a7a4e

Please sign in to comment.