dashboard / Dockerfile
emanalytics's picture
Update dokerfile
ec926d8 verified
raw
history blame contribute delete
712 Bytes
# Use the official Python image as a parent image
# Use the official Python image as a parent image
FROM python:3.11
# Set the working directory in the container
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN python3 -m pip install --no-cache-dir --upgrade pip
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Run app.py when the container launches
# CMD ["bokeh", "serve", "--show", "dashboard/app.py", "address", ]
CMD ["panel", "serve", "/code/dashboard/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "emanalytics-dashboard.hf.space"]
RUN mkdir /.cache
RUN chmod 777 /.cache
RUN mkdir .chroma
RUN chmod 777 .chroma