vilexagent / Dockerfile
Nhat Anh
Clean sys.path and add PYTHONPATH
aecfd7c
Raw
History Blame Contribute Delete
499 Bytes
FROM python:3.13-slim
WORKDIR /app
RUN apt-get update && apt-get install -y gcc g++ curl git && rm -rf /var/lib/apt/lists/*
COPY requirements-deploy.txt ./
RUN pip install --no-cache-dir -r requirements-deploy.txt
COPY src/ ./src/
COPY app/ ./app/
COPY .chainlit/ ./.chainlit/
COPY chainlit.md ./chainlit.md
RUN useradd -m -u 1000 user && chown -R user:user /app
USER user
ENV PYTHONPATH="/app"
EXPOSE 7860
CMD ["chainlit", "run", "app/vilexagent_ui.py", "--host", "0.0.0.0", "--port", "7860"]