mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 11:56:53 +00:00
minor bug fix, docker
This commit is contained in:
11
Dockerfile.nps
Executable file
11
Dockerfile.nps
Executable file
@@ -0,0 +1,11 @@
|
||||
FROM golang as builder
|
||||
WORKDIR /go/src/github.com/cnlh/nps
|
||||
COPY . .
|
||||
RUN go get -d -v ./...
|
||||
RUN CGO_ENABLED=0 go build -ldflags="-w -s -extldflags -static" ./cmd/nps/nps.go
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /go/src/github.com/cnlh/nps/nps /
|
||||
COPY --from=builder /go/src/github.com/cnlh/nps/web /web
|
||||
VOLUME /conf
|
||||
CMD ["/nps"]
|
Reference in New Issue
Block a user