-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 885 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 885 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
# Step 1: Use an official Rust & Python friendly base image
FROM rust:1.78-slim-bookworm
# Step 2: Install Python, pip, and core hardware/SDR system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
libusb-1.0-0-dev \
pkg-config \
git \
&& rm -rf /var/lib/apt/lists/*
# Step 3: Set up the working directory inside the container
WORKDIR /usr/src/infinite-zer0
# Step 4: Copy your project files into the container
COPY . .
# Step 5: Build your Rust binary/library
RUN cargo build --release
# Step 6: Install Python requirements if you have an ai_bridge requirements file
RUN if [ -f ai_bridge/requirements.txt ]; then pip3 install --no-cache-dir -r ai_bridge/requirements.txt; fi
# (Optional) Tell the container what to run by default when it starts
CMD ["cargo", "run", "--release"]