Spaces:
Sleeping
Sleeping
change workdir
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -12,11 +12,17 @@ RUN apt-get update \
|
|
| 12 |
|
| 13 |
COPY . .
|
| 14 |
|
|
|
|
|
|
|
| 15 |
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
| 16 |
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/xsadcp/requirements.txt
|
| 17 |
RUN python3 -m pip install /code/xsadcp/.
|
| 18 |
|
| 19 |
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
# Add step to download data.tar from URL and extract its contents to /data/
|
| 21 |
RUN mkdir data \
|
| 22 |
&& chmod 777 data \
|
|
@@ -25,7 +31,7 @@ RUN mkdir data \
|
|
| 25 |
&& rm data_test.tar \
|
| 26 |
&& ls data/
|
| 27 |
|
| 28 |
-
CMD ["panel", "serve", "
|
| 29 |
|
| 30 |
RUN mkdir /.cache
|
| 31 |
RUN chmod 777 /.cache
|
|
@@ -36,7 +42,5 @@ RUN chmod 777 .chroma
|
|
| 36 |
RUN mkdir /.local
|
| 37 |
RUN chmod 777 /.local
|
| 38 |
|
| 39 |
-
RUN pwd \
|
| 40 |
-
&& ls
|
| 41 |
|
| 42 |
|
|
|
|
| 12 |
|
| 13 |
COPY . .
|
| 14 |
|
| 15 |
+
# install python softwares.
|
| 16 |
+
|
| 17 |
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
| 18 |
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/xsadcp/requirements.txt
|
| 19 |
RUN python3 -m pip install /code/xsadcp/.
|
| 20 |
|
| 21 |
COPY . .
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
WORKDIR /code/xsadcp
|
| 25 |
+
|
| 26 |
# Add step to download data.tar from URL and extract its contents to /data/
|
| 27 |
RUN mkdir data \
|
| 28 |
&& chmod 777 data \
|
|
|
|
| 31 |
&& rm data_test.tar \
|
| 32 |
&& ls data/
|
| 33 |
|
| 34 |
+
CMD ["panel", "serve", "xsadcp/app.py", "--warm", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|
| 35 |
|
| 36 |
RUN mkdir /.cache
|
| 37 |
RUN chmod 777 /.cache
|
|
|
|
| 42 |
RUN mkdir /.local
|
| 43 |
RUN chmod 777 /.local
|
| 44 |
|
|
|
|
|
|
|
| 45 |
|
| 46 |
|