forked from couragetec/courage_substrate_cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (20 loc) · 894 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
FROM phusion/baseimage:0.10.2 as builder
ENV TERM=xterm
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade && \
apt-get --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade && \
apt-get install -y cmake pkg-config libssl-dev git clang
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH=/root/.cargo/bin:$PATH
WORKDIR /substrate
RUN rustup +nightly-2020-08-19 target add wasm32-unknown-unknown
ARG PROJECT=node-template
ARG PROFILE=release
COPY . .
RUN cargo +nightly-2020-08-19 build --$PROFILE && \
mv ./target/$PROFILE/$PROJECT /app
FROM phusion/baseimage:0.10.2
LABEL org.opencontainers.image.source https://github.com/adoriasoft/polkadot_cosmos_integration
COPY --from=builder /app .
ENTRYPOINT ["/app"]