forked from dapplink-labs/wallet-chain-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (17 loc) · 641 Bytes
/
Dockerfile
File metadata and controls
29 lines (17 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM golang:1.21.1-alpine3.18 as builder
RUN apk add --no-cache make ca-certificates gcc musl-dev linux-headers git jq bash
COPY ./go.mod /app/go.mod
COPY ./go.sum /app/go.sum
WORKDIR /app
RUN go mod download
ARG CONFIG=config.yml
# build wallet-chain-node with the shared go.mod & go.sum files
COPY . /app/wallet-chain-node
WORKDIR /app/wallet-chain-node
RUN make
FROM alpine:3.18
COPY --from=builder /app/wallet-chain-node/wallet-chain-node /usr/local/bin
COPY --from=builder /app/wallet-chain-node/${CONFIG} /etc/wallet-chain-node/
WORKDIR /app
ENTRYPOINT ["wallet-chain-node"]
CMD ["-c", "/etc/wallet-chain-node/config.yml"]