-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (25 loc) · 775 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
32
33
34
35
36
37
38
39
40
41
FROM rust:latest as builder-base
RUN apt-get update -y && apt-get upgrade -y && rustup update
RUN apt-get install -y \
protobuf-compiler
RUN rustup install nightly && \
rustup target add wasm32-unknown-unknown wasm32-wasi --toolchain nightly
FROM builder-base as builder
ADD . /workspace
WORKDIR /workspace
COPY . .
RUN cargo build --release -v --workspace
FROM debian:buster-slim as runner-base
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y \
protobuf-compiler
FROM runner-base as runner
COPY --chown=55 .config /config
VOLUME [ "/config" ]
COPY --from=builder /workspace/target/release/disarray /bin/disarray
FROM runner
ENV MAINNET_PORT=9999 \
RUST_LOG="info"
EXPOSE 80
EXPOSE ${MAINNET_PORT}
ENTRYPOINT [ "disarray" ]