-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 1.01 KB
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
FROM python:3.13-slim-bookworm
# ------------------------------------------------------------
# System packages
# ------------------------------------------------------------
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl git ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# ------------------------------------------------------------
# Install always-latest Meshtastic Python (pulls matching protobufs)
# ------------------------------------------------------------
RUN pip install --no-cache-dir --upgrade \
"meshtastic @ git+https://github.com/meshtastic/meshtastic-python.git"
# ------------------------------------------------------------
# Application
# ------------------------------------------------------------
WORKDIR /app
COPY mesh-api.py .
COPY requirements.txt .
COPY config.json .
COPY commands_config.json .
COPY motd.json .
COPY extensions/ ./extensions/
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
CMD ["python", "mesh-api.py"]