Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
|
@@ -7,16 +7,14 @@ 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 |
-
# Add step to download
|
| 11 |
-
RUN mkdir /data
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
&&
|
| 15 |
-
&&
|
| 16 |
-
|
| 17 |
-
&&
|
| 18 |
-
RUN wget https://data-eurogoship.ifremer.fr/copy_seadatanet/table.csv \
|
| 19 |
-
&& mv table.csv /data/
|
| 20 |
|
| 21 |
CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|
| 22 |
|
|
|
|
| 7 |
RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
+
# Add step to download data.tar from URL and extract its contents to /data/
|
| 11 |
+
RUN mkdir /data \
|
| 12 |
+
&& chmod 777 /data \
|
| 13 |
+
&& apt-get update \
|
| 14 |
+
&& apt-get install -y wget tar \
|
| 15 |
+
&& wget https://data-eurogoship.ifremer.fr/data.tar \
|
| 16 |
+
&& tar -xvf data.tar -C /data/ \
|
| 17 |
+
&& rm data.tar
|
|
|
|
|
|
|
| 18 |
|
| 19 |
CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"]
|
| 20 |
|