gemini-claw / Dockerfile
PurCLI Agent
Initial commit from PurCLI Coding Agent
ef271cc
raw
history blame contribute delete
826 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install curl + git + Node.js 20
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
ca-certificates \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
COPY app.py .
COPY src/ ./src/
COPY templates/ ./templates/
COPY system_prompt.md .
# HF Spaces non-root user (uid 1000)
RUN useradd -m -u 1000 user && chown -R user:user /app
USER user
# Workspace per-user dibuat di /tmp (selalu writable)
ENV CLAW_WORKSPACE=/tmp/workspace
ENV PORT=7860
EXPOSE 7860
CMD ["python", "app.py"]