tinaok commited on
Commit
ab10410
1 Parent(s): 94aa0ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 folder from URL
11
- RUN mkdir /data
12
- RUN chmod 777 /data
13
- RUN apt-get update && apt-get install -y wget \
14
- && wget https://data-eurogoship.ifremer.fr/copy_seadatanet/1H_file.zarr \
15
- && mv 1H_file.zarr /data/
16
- RUN wget https://data-eurogoship.ifremer.fr/bathymetrie/bathy6min.nc \
17
- && mv bathy6min.nc /data/
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