forked from smartcontractkit/substrate-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (20 loc) · 933 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
FROM golang:stretch as go-builder
ADD . /go/src/github.com/smartcontractkit/substrate-adapter
RUN cd /go/src/github.com/smartcontractkit/substrate-adapter && go get && go build -o substrate-adapter
FROM debian:stretch-slim as ssl-certificates
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libssl1.1 \
ca-certificates && \
# apt cleanup
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete;
FROM parity/subkey:2.0.0 as subkey
FROM debian:stretch-slim
COPY --from=go-builder /go/src/github.com/smartcontractkit/substrate-adapter/substrate-adapter /usr/local/bin/
COPY --from=subkey /usr/local/bin/ /usr/local/bin/
COPY --from=ssl-certificates /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8080
ENTRYPOINT ["substrate-adapter"]