File size: 360 Bytes
266f6ca
 
 
 
875fd1e
266f6ca
875fd1e
 
266f6ca
875fd1e
266f6ca
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]