zavavan commited on
Commit
bb2630a
·
verified ·
1 Parent(s): 4951d92

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -6,14 +6,9 @@ COPY ./requirements.txt /code/requirements.txt
6
  RUN python3 -m pip install --no-cache-dir --upgrade pip
7
  RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
- COPY . /code
10
-
11
- # Expose the port on which the app will run
12
- EXPOSE 7860
13
-
14
-
15
- CMD ["python", "dashboard.py"]
16
 
 
17
 
18
  RUN mkdir /.cache
19
  RUN chmod 777 /.cache
 
6
  RUN python3 -m pip install --no-cache-dir --upgrade pip
7
  RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
+ COPY . .
 
 
 
 
 
 
10
 
11
+ CMD ["panel", "serve", "/code/dashboard.py", "--address", "0.0.0.0", "--port", "7860", "--static-dirs assets=./assets","--allow-websocket-origin", "*", "--num-procs", "2", "--num-threads", "0", "--index", "dashboard"]
12
 
13
  RUN mkdir /.cache
14
  RUN chmod 777 /.cache