Update Dockerfile

This commit is contained in:
topianet 2023-12-29 11:26:54 +01:00 committed by GitHub
parent edd97324cc
commit aa74152540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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", "--" ]