Spaces:
Sleeping
Sleeping
File size: 634 Bytes
45eef34 478fbef |
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 |
# Use an official Python runtime as a parent image
FROM python:3.12-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory in the container
WORKDIR $HOME/app
# Copy the current directory contents into the container at /app
COPY --chown=user . $HOME/app
COPY ./requirements.txt $HOME/app/requirements.txt
# Install any needed dependencies specified in requirements.txt
RUN pip install -r requirements.txt
COPY . .
# Set environment variables
ENV PYTHONUNBUFFERED 1
# Command to run the app
CMD python -m chainlit run qa.py -h --host 0.0.0.0 --port 7860 |