test-chainlit / Dockerfile
biancat's picture
Allow pip caching
df15af1
raw
history blame contribute delete
356 Bytes
FROM python:3.11
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . app
COPY ./requirements.txt $HOME/app/requirements.txt
RUN pip install --upgrade -r $HOME/app/requirements.txt
COPY . .
EXPOSE 7860
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]