-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 802 Bytes
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 802 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
35
36
37
# Build stage
FROM debian:bookworm-slim AS builder
# Install build dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
pkg-config \
liburing-dev \
libsystemd-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
# Build the project
RUN mkdir build && cd build && cmake .. && make
# Final stage
FROM debian:bookworm-slim
# Install runtime dependencies
RUN apt-get update && apt-get install -y \
liburing2 \
libsystemd0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/build/FsEventBridge .
COPY --from=builder /app/configs/config.toml ./config.toml
# Create a default monitor directory
RUN mkdir -p /monitor
# Run the bridge
ENTRYPOINT ["./FsEventBridge"]
CMD ["-d", "/monitor", "-s", "/tmp/feb.sock"]