-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 765 Bytes
/
Dockerfile
File metadata and controls
34 lines (25 loc) · 765 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
34
FROM debian:bookworm-slim AS builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /workspace
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN mkdir -p build \
&& cd build \
&& cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_VISUALIZER=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_CLI=ON \
-DBUILD_FAST_SIMULATOR=ON \
-DBUILD_DETAILED_SIMULATOR=ON \
&& cmake --build . --target BlendingSimulatorCli -j$(nproc) \
&& strip BlendingSimulatorCli/BlendingSimulatorCli
FROM gcr.io/distroless/cc
WORKDIR /app
COPY --from=builder /workspace/build/BlendingSimulatorCli/BlendingSimulatorCli ./
USER nonroot:nonroot
ENTRYPOINT ["./BlendingSimulatorCli"]