openclaw-nebula / Dockerfile
Agnuxo's picture
Upload Dockerfile with huggingface_hub
4d23f20 verified
raw
history blame contribute delete
476 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& 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 . .
# HF Spaces runs as non-root user
RUN useradd -m -u 1000 user && chown -R user:user /app
USER user
EXPOSE 7860
CMD ["python", "app.py"]