Spaces:
Runtime error
Runtime error
File size: 699 Bytes
1872f36 cc65f9c 1872f36 167cffa 1872f36 cc65f9c 1872f36 167cffa 1872f36 cc65f9c 1872f36 167cffa 1872f36 60306b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM python:3.11
# Create a non-root user
RUN useradd -m -u 1000 user
# Create the application directory and ensure it has the correct permissions
RUN mkdir -p /home/user/app && chown user:user /home/user/app
# Set environment variables
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Switch to the non-root user
USER user
# Set the working directory
WORKDIR $HOME/app
# Clone the Git repository and install requirements
RUN git clone https://github.com/brlrb/chatpdf.git . && \
pip install --user -r requirements.txt
# Copy the rest of your application (if needed)
COPY --chown=user . .
# Command to run your application
CMD ["chainlit", "run", "app.py", "--port", "7860"] |