Spaces:
Running
Running
Commit
•
2604bc1
1
Parent(s):
771bb92
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -2,12 +2,13 @@ FROM python:3.11
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
5 |
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
6 |
-
RUN python3 -m pip install --no-cache-dir --upgrade -r requirements.txt
|
7 |
|
8 |
COPY . .
|
9 |
|
10 |
-
CMD ["panel", "serve", "app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2", "--index", "app"]
|
11 |
|
12 |
RUN mkdir /.cache
|
13 |
RUN chmod 777 /.cache
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
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 . .
|
10 |
|
11 |
+
CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2", "--num-threads", "0", "--index", "app"]
|
12 |
|
13 |
RUN mkdir /.cache
|
14 |
RUN chmod 777 /.cache
|