-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (34 loc) · 883 Bytes
/
Dockerfile
File metadata and controls
41 lines (34 loc) · 883 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
38
39
40
41
# Use Debian Trixie as base (ARM64 for Pi simulation)
FROM arm64v8/debian:trixie
# Update and install system dependencies
RUN apt-get update && apt-get install -y \
cmake \
g++ \
build-essential \
python3 \
python3-pip \
python3-dev \
libgpiod-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages (adjust based on your textual_requirements.txt)
RUN pip3 install --no-cache-dir \
textual \
gpiozero \
attrs \
certifi \
cryptography \
psutil \
rich \
pyserial \
python-can \
websockets
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Build C++ components (if needed)
RUN mkdir build && cd build && cmake .. && make
# Expose ports if your app uses them (e.g., for telemetry)
EXPOSE 8080
# Default command (adjust for your entry point, e.g., main.py)
CMD ["python3", "main.py"]