deep-agent / Dockerfile
Shami96's picture
Upload Dockerfile with huggingface_hub
875fd1e verified
raw
history blame contribute delete
360 Bytes
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 agent
WORKDIR /home/agent/app
COPY --chown=agent:agent requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=agent:agent . .
USER agent
EXPOSE 7860
CMD ["python", "server.py"]