mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-26 15:35:55 +00:00
Update Dockerfile
This commit is contained in:
parent
d0b35d7af3
commit
e20f555a8d
@ -1,9 +1,9 @@
|
|||||||
# -- multistage docker build: stage #1: build stage
|
# -- multistage docker build: stage #1: build stage
|
||||||
FROM golang:1.18-alpine AS build
|
FROM golang:1.18-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/kaspawallet
|
WORKDIR /go/src/github.com/fabbez/topiad/cmd/kaspawallet
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspawallet .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspawallet .
|
||||||
|
|
||||||
# --- multistage docker build: stage #2: runtime image
|
# --- multistage docker build: stage #2: runtime image
|
||||||
@ -23,7 +23,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/kaspawallet/kaspawallet /app/
|
COPY --from=build /go/src/github.com/fabbez/topiad/cmd/kaspawallet/kaspawallet /app/
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
ENTRYPOINT [ "/sbin/tini", "--" ]
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user