-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (20 loc) · 732 Bytes
/
Dockerfile
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
30
31
FROM rss3/go-builder AS base
WORKDIR /root/node
RUN --mount=type=cache,target=/go/pkg/mod/ \
--mount=type=bind,source=go.sum,target=go.sum \
--mount=type=bind,source=go.mod,target=go.mod \
go mod download -x
RUN wget -O etherface.tar.gz https://storage.googleapis.com/rss3-etherface/etherface.tar.gz && \
tar -xzf etherface.tar.gz && \
rm etherface.tar.gz
COPY . .
FROM base AS builder
ENV CGO_ENABLED=0
RUN --mount=type=cache,target=/go/pkg/mod/ \
make build
FROM rss3/go-runtime AS runner
WORKDIR /root/node
COPY --from=builder /root/node/etherface /root/node/etherface
COPY --from=builder /root/node/build/node .
COPY deploy/config.example.yaml /etc/rss3/node/config.yaml
ENTRYPOINT ["./node"]