ChatBotPDF / Dockerfile
hnfabdllh's picture
Update Dockerfile
0138ccd
raw
history blame
469 Bytes
FROM python:3.11
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
RUN mkdir /code/.cache
RUN chmod 777 /code/.cache
RUN mkdir /code/.chroma
RUN chmod 777 /code/.chroma
CMD ["panel", "serve", "/code/ai-chat-pdf.ipynb", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "hnfabdllh-chatbotpdf.hf.space", "--allow-websocket-origin", "0.0.0.0:7860"]