Phase 5: Docker containerization and API server for remote access

This commit is contained in:
truetype committed 2026-03-20 18:16:11 +01:00
1 parent b17c180fbe
commit 5541770896
6 files changed
+578 -1

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
# MaxClaw Agent Docker Image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create directory for configuration
RUN mkdir -p /root/.maxclaw && \
chmod 700 /root/.maxclaw
# Expose port for API (future use)
EXPOSE 8000
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV MODEL_PROVIDER=ollama
ENV MODEL_NAME=gemma2:9b
ENV OLLAMA_BASE_URL=http://host.docker.internal:11434
# Default command
CMD ["python", "main.py"]