chainlit_doc / Dockerfile
heyday1234's picture
Update Dockerfile
e144bdc verified
raw
history blame
513 Bytes
# Use the official python 3.9 image
FROM python:3.10-slim-bullseye
# Set the working directory to corrent folder
WORKDIR /code
RUN useradd -m -u 1000 user
USER user
# Copy the requirements to working directory
COPY --chown=user:user ./requirements.txt /code/requirements.txt
# Install all packages in requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY --chown=user:user . /code
EXPOSE 7860
CMD ["python", "-m", "chainlit", "run", "model.py", "-h", "--port", "7860"]