-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
26 lines (23 loc) · 1000 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
#! Running the orchestrator in a docker file leads to issues with the verity-client
# initial buider image to compile the orchestrator into an executable binary
FROM rust:bookworm AS build
WORKDIR /verityprogram
COPY ./ ./
RUN cargo build -p orchestrator --release
# our final base image
FROM debian:bookworm-slim
# Install pkg-config and libssl-dev for async-tungstenite to use
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \
pkg-config \
libssl-dev \
ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy default fixture folder for default usage
WORKDIR /verityprogram
# copy the build artifact and config from the build stage
COPY --from=build /verityprogram/target/release/orchestrator .
# !NOTE: the env variables from the docker compose file will override the .env file if both are provided
COPY --from=build /verityprogram/orchestrator/identity.pem .
# set the startup command to run your binary
CMD ["./orchestrator"]