mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-05 20:32:31 +00:00
Update Dockerfile
This commit is contained in:
parent
edd97324cc
commit
aa74152540
@ -1,9 +1,9 @@
|
|||||||
# -- multistage docker build: stage #1: build stage
|
# -- multistage docker build: stage #1: build stage
|
||||||
FROM golang:1.19-alpine AS build
|
FROM golang:1.19-alpine AS build
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/kaspanet/kaspad
|
RUN mkdir -p /go/src/github.com/fabbez/topiad
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/kaspanet/kaspad
|
WORKDIR /go/src/github.com/fabbez/topiad
|
||||||
|
|
||||||
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
RUN apk add --no-cache curl git openssh binutils gcc musl-dev
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ RUN go mod download
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/kaspanet/kaspad/cmd/kaspactl
|
WORKDIR /go/src/github.com/fabbez/topiad/cmd/kaspactl
|
||||||
|
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspactl .
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN apk add --no-cache ca-certificates tini
|
RUN apk add --no-cache ca-certificates tini
|
||||||
|
|
||||||
COPY --from=build /go/src/github.com/kaspanet/kaspad/cmd/kaspactl/kaspactl /app/
|
COPY --from=build /go/src/github.com/fabbez/topiad/cmd/kaspactl/kaspactl /app/
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
ENTRYPOINT [ "/sbin/tini", "--" ]
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user