Files
gpu-services/nanoclaude/Dockerfile
T
Hyungi Ahn 9141942974 fix(nanoclaude): docker CLI + socket 마운트로 로컬 docker 접근
INFRA_LOCAL_HOST=gpu에서 run_local("docker ps")가 동작하려면
컨테이너 안에 docker CLI + socket 필요.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 14:00:53 +09:00

32 lines
830 B
Docker

FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
curl openssh-client docker.io \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install nanoclaude dependencies
COPY nanoclaude/requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy nanoclaude app
COPY nanoclaude/ ./
# Copy infra/ for infra_tool integration
COPY infra/ ./infra/
# Ensure infra has its own dependencies (pydantic, asyncssh already in requirements)
# Python path: /app is WORKDIR, so "from infra.core..." and "from tools..." both work
ENV PYTHONUNBUFFERED=1
RUN mkdir -p /app/data
EXPOSE 8100
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8100/health || exit 1
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8100"]