File size: 392 Bytes
803e0db 8d3fb82 8483bbb 8d3fb82 8483bbb 8d3fb82 8483bbb 8d3fb82 803e0db 8d3fb82 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM python:3.10
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create a non-root user
RUN useradd -m chainlit_user
# Change ownership of the /app directory
RUN chown -R chainlit_user:chainlit_user /app
# Switch to the non-root user
USER chainlit_user
CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"] |