Files
dllama/Dockerfile.worker
Chris c571a82356
Some checks failed
main / Linux (amd64, ubuntu-22.04) (push) Successful in 24s
main / Linux (arm64, ubuntu-latest-arm64) (push) Successful in 1m9s
main / Windows (push) Has been cancelled
new stuff
2025-10-24 12:10:58 +02:00

32 lines
699 B
Docker

# Dockerfile for Distributed Llama Worker (Raspberry Pi)
# This variant runs as a worker node and connects to a controller
FROM arm64v8/debian:bookworm-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
g++ \
make \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy source code
COPY src/ ./src/
COPY Makefile ./
# Copy worker entrypoint script
COPY scripts/entrypoint-worker.sh /app/entrypoint.sh
# Make script executable
RUN chmod +x /app/entrypoint.sh
# Build only the worker application
RUN make dllama
# Expose the default worker port
EXPOSE 9999
# Use the entrypoint script
ENTRYPOINT ["/app/entrypoint.sh"]