Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
FROM python:3.11
|
2 |
|
3 |
-
WORKDIR /
|
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 |
-
|
|
|
|
|
|
|
|
|
12 |
|
13 |
RUN mkdir /.cache
|
14 |
RUN chmod 777 /.cache
|
|
|
1 |
FROM python:3.11
|
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 . /code
|
10 |
|
11 |
+
# Expose the port on which the app will run
|
12 |
+
EXPOSE 7860
|
13 |
+
|
14 |
+
|
15 |
+
CMD ["panel", "serve", "/code/dashboard.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*", "--num-procs", "2", "--num-threads", "0","--index", "dashboard"]
|
16 |
|
17 |
RUN mkdir /.cache
|
18 |
RUN chmod 777 /.cache
|