Spaces:
Running
Running
FROM python:3.11 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN apt update | |
RUN apt-get -y install libgdal-dev ffmpeg libsm6 libxext6 | |
RUN pip install --no-cache-dir --upgrade numpy | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
RUN mkdir /.local /.cache | |
RUN chmod a+rwx -R /code/cache | |
RUN chmod a+rwx -R /.local | |
RUN chmod a+rwx -R /.cache | |
ENV HF_HOME=/code/cache | |
EXPOSE 7860 | |
CMD ["shiny", "run", "baby_shiny.py", "--host", "0.0.0.0", "--port", "7860"] | |