forked from Phala-Network/ChainBridge
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
21 lines (17 loc) 路 618 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2020 ChainSafe Systems
# SPDX-License-Identifier: LGPL-3.0-only
FROM golang:1.13-stretch AS builder
ADD . /src
WORKDIR /src
RUN go mod download
RUN cd cmd/chainbridge && go build -o /bridge .
# # final stage
FROM debian:stretch-slim
RUN apt-get -y update && apt-get -y upgrade && apt-get install ca-certificates wget -y
RUN wget -P /usr/local/bin/ https://chainbridge.ams3.digitaloceanspaces.com/subkey-rc6 \
&& mv /usr/local/bin/subkey-rc6 /usr/local/bin/subkey \
&& chmod +x /usr/local/bin/subkey
RUN subkey --version
COPY --from=builder /bridge ./
RUN chmod +x ./bridge
ENTRYPOINT ["./bridge"]