haihuynh commited on
Commit
6034b98
1 Parent(s): e5ec5f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -25,12 +25,13 @@ WORKDIR $HOME/app
25
 
26
  # Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
27
  RUN pip install --no-cache-dir --upgrade pip
28
- RUN pip install gdown
29
  RUN gdown --id 0B7EVK8r0v71pZjFTYXZWM3FlRnM
30
 
31
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
32
  COPY --chown=user . $HOME/app
33
- RUN unzip -pq img_align_celeba.zip
 
34
 
35
  # RUN pip install -r requirements.txt
36
  # RUN python cbir_system.py
 
25
 
26
  # Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
27
  RUN pip install --no-cache-dir --upgrade pip
28
+ RUN pip install gdown tqdm
29
  RUN gdown --id 0B7EVK8r0v71pZjFTYXZWM3FlRnM
30
 
31
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
32
  COPY --chown=user . $HOME/app
33
+ RUN n_files=`unzip -l zipfile.zip | tail -n 1 | xargs echo -n | cut -d' ' -f2`
34
+ RUN unzip -q img_align_celeba.zip | tqdm --desc extracted --unit files --unit_scale --total $n_files > /dev/null
35
 
36
  # RUN pip install -r requirements.txt
37
  # RUN python cbir_system.py