mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 22:45:50 +00:00
Update Dockerfile
This commit is contained in:
parent
89093d88d4
commit
637bfe06bc
@ -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/kaspaminer
|
WORKDIR /go/src/github.com/fabbez/topiad/cmd/kaspaminer
|
||||||
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer .
|
RUN GOOS=linux go build -a -installsuffix cgo -o kaspaminer .
|
||||||
|
|
||||||
# --- 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/kaspaminer/kaspaminer /app/
|
COPY --from=build /go/src/github.com/fabbez/topiad/cmd/kaspaminer/kaspaminer /app/
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
ENTRYPOINT [ "/sbin/tini", "--" ]
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user