Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -12
Dockerfile
CHANGED
|
@@ -3,12 +3,6 @@ FROM python:3.11.7
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
# Copy the Python code from the xsadcp repository
|
| 6 |
-
#RUN git clone https://github.com/tinaok/xsadcp.git xsadcp
|
| 7 |
-
#RUN pwd \
|
| 8 |
-
# && ls
|
| 9 |
-
#
|
| 10 |
-
#COPY ./requirements.txt /code/requirements.txt
|
| 11 |
-
# Download and extract xsadcp code from GitHub
|
| 12 |
RUN apt-get update \
|
| 13 |
&& apt-get install -y wget tar \
|
| 14 |
&& wget https://github.com/tinaok/xsadcp/archive/refs/tags/0.1.tar.gz \
|
|
@@ -26,14 +20,12 @@ COPY . .
|
|
| 26 |
# Add step to download data.tar from URL and extract its contents to /data/
|
| 27 |
RUN mkdir data \
|
| 28 |
&& chmod 777 data \
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
&&
|
| 32 |
-
&& tar -xvf data.tar -C data/ \
|
| 33 |
-
&& rm data.tar \
|
| 34 |
&& ls data/
|
| 35 |
|
| 36 |
-
CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|
| 37 |
|
| 38 |
RUN mkdir /.cache
|
| 39 |
RUN chmod 777 /.cache
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
# Copy the Python code from the xsadcp repository
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
RUN apt-get update \
|
| 7 |
&& apt-get install -y wget tar \
|
| 8 |
&& wget https://github.com/tinaok/xsadcp/archive/refs/tags/0.1.tar.gz \
|
|
|
|
| 20 |
# Add step to download data.tar from URL and extract its contents to /data/
|
| 21 |
RUN mkdir data \
|
| 22 |
&& chmod 777 data \
|
| 23 |
+
&& wget https://data-eurogoship.ifremer.fr/data_test.tar \
|
| 24 |
+
&& tar -xvf data_test.tar -C data/ \
|
| 25 |
+
&& rm data_test.tar \
|
|
|
|
|
|
|
| 26 |
&& ls data/
|
| 27 |
|
| 28 |
+
CMD ["panel", "serve", "/code/xsadcp/xsadcp/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|
| 29 |
|
| 30 |
RUN mkdir /.cache
|
| 31 |
RUN chmod 777 /.cache
|