-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 956 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 956 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
# Minimal Alpine-based Dockerfile for MeshBot
FROM python:3.12-alpine
# Install build dependencies (needed for some Python packages)
RUN apk add --no-cache \
gcc \
musl-dev \
linux-headers \
&& rm -rf /var/cache/apk/*
# Set working directory
WORKDIR /app
# Copy project files
COPY pyproject.toml ./
COPY src/ ./src/
# Install the package
RUN pip install --no-cache-dir -e .
# Run as non-root user for security
RUN adduser -D -u 1000 meshbot
USER meshbot
# Default command (can be overridden)
ENTRYPOINT ["meshbot"]
CMD ["run", "--meshcore-connection-type", "mock"]
LABEL org.opencontainers.image.source="https://github.com/ipnet-mesh/meshbot"
LABEL org.opencontainers.image.description="AI agent for MeshCore network communication"
LABEL org.opencontainers.image.authors="IPNet Mesh <info@ipnt.uk>"
LABEL org.opencontainers.image.url="https://github.com/ipnet-mesh/meshbot"
LABEL org.opencontainers.image.licenses="GPL-3.0-or-later"