Spaces:
Runtime error
Runtime error
FROM python:3.11 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Copy your application code | |
COPY . . | |
# Create a non-root user, change ownership of /code to this user, then switch to it | |
RUN adduser --disabled-password --gecos '' myuser && \ | |
chown -R myuser:myuser /code | |
USER myuser | |
CMD ["chainlit", "run", "app.py", "--port", "7860"] |