forked from hyli-org/wallet
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.server
More file actions
35 lines (23 loc) · 731 Bytes
/
Dockerfile.server
File metadata and controls
35 lines (23 loc) · 731 Bytes
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
FROM rust:latest AS builder
RUN curl -L https://risczero.com/install | bash
RUN /root/.risc0/bin/rzup install
RUN apt-get update && apt-get install -y libdbus-1-dev
WORKDIR /app
COPY .cargo .cargo
COPY ./contracts/ ./contracts
COPY ./server ./server
COPY Cargo.toml .
COPY Cargo.lock .
RUN cargo build --release --bin server
RUN cargo build --release --bin autoprover
# RUNNER
FROM rust:latest
WORKDIR /app
COPY --from=builder /app/target/release/server ./
COPY --from=builder /app/target/release/autoprover ./
RUN apt-get update && apt-get install -y libdbus-1-dev curl
RUN curl -L https://risczero.com/install | bash
RUN /root/.risc0/bin/rzup install r0vm 2.3.2
EXPOSE 4000
ENV RISC0_EXECUTOR=local
CMD ["./server"]