-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
18 lines (12 loc) · 1.38 KB
/
Copy pathDockerfile.dev
File metadata and controls
18 lines (12 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ===== SegmeCam — dev image (fast rebuilds, no compile on container start) =====
# Keeps Bazel cache between builds via BuildKit cache mounts & compose volume.
FROM nvidia/cuda:12.9.0-devel-ubuntu24.04
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-lc"]
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git git-lfs build-essential python3 python3-pip pkg-config cmake ninja-build libopencv-dev ffmpeg libsdl2-dev libgl1-mesa-dev libv4l-dev libx11-dev libxext-dev libxrandr-dev libxi-dev libxinerama-dev libxcursor-dev libxfixes-dev libgtk-3-0 libglib2.0-0 zlib1g-dev libzstd-dev liblzma-dev libxxhash-dev && rm -rf /var/lib/apt/lists/*
RUN curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 -o /usr/local/bin/bazel && chmod +x /usr/local/bin/bazel
WORKDIR /app
COPY . /app
# Source code is now at /app/mediapipe/examples/desktop/segmecam/ - no copying needed
# Default command builds and runs the app using new MediaPipe workspace structure
ENTRYPOINT ["/bin/bash", "-lc", "bazel build -c opt --cxxopt=-I/usr/include/opencv4 //mediapipe/examples/desktop/segmecam:segmecam_gui_gpu && ./bazel-bin/mediapipe/examples/desktop/segmecam/segmecam_gui_gpu /app/mediapipe_graphs/face_and_seg_gpu_mask_cpu.pbtxt ./bazel-bin/mediapipe/examples/desktop/segmecam/segmecam_gui_gpu.runfiles 0"]