File size: 522 Bytes
82b27f7
ab6a63c
 
 
7acae1b
aab2801
 
ab6a63c
7acae1b
6dc2daa
ab6a63c
2c150e9
ab6a63c
2d50870
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.11

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 python3 download_datasets.py

CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860",  "--allow-websocket-origin", "*", "--num-procs", "4", "--index", "app", "--reuse-sessions"]

RUN chmod 777 data

ENV NUMBA_CACHE_DIR=/code/.cache
RUN mkdir .cache
RUN chmod 777 .cache