-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (45 loc) · 1.16 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (45 loc) · 1.16 KB
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
42
43
44
45
46
# Build and compile the orchestrator and react frontend
FROM rust AS build_phase
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN apt update -y \
&& apt upgrade -y \
&& apt install -y \
libclang-dev \
xorg-dev \
libxcb-shape0-dev \
libxcb-xfixes0-dev \
clang \
avahi-daemon \
libavahi-client-dev \
nodejs \
npm
COPY wasmiot-orchestrator-webgui wasmiot-orchestrator-webgui
COPY entrypoint.sh entrypoint.sh
COPY orchestrator-local-start.sh orchestrator-local-start.sh
RUN ./orchestrator-local-start.sh --no-run
# Copy compiled orchestrator to final runtime image.
FROM debian:bookworm-slim AS runtime
RUN apt update -y \
&& apt upgrade -y \
&& apt install -y \
libclang-dev \
xorg-dev \
libxcb-shape0-dev \
libxcb-xfixes0-dev \
libv4l-dev \
v4l-utils \
clang \
avahi-daemon \
libavahi-client-dev \
avahi-utils \
dbus \
procps
LABEL org.opencontainers.image.source="https://github.com/LiquidAI-project/orchestrator-rust-port"
RUN mkdir -p /run/dbus
RUN rm -rf /run/dbus/*
WORKDIR /app
COPY --from=build_phase /app/build /app/build
WORKDIR build
CMD ["./entrypoint.sh"]