File size: 504 Bytes
d2bfb9c
5b4a37c
 
 
 
 
504e172
10d3dca
e75b527
5b4a37c
 
 
fcd29a5
77e73d7
d804cc4
98d8028
7d934f3
5b4a37c
 
 
6e62b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]