Martí Umbert commited on
Commit
13ad831
·
1 Parent(s): a372da6

Dockerfile: try to clean internal docker image space

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -59,6 +59,12 @@ RUN mkdir -p /var/cache/matplotlib && chmod -R 777 /var/cache/matplotlib && \
59
  mkdir /nltk_data && chmod -R 777 /nltk_data && \
60
  mkdir -p /tmp/NUMBA_CACHE_DIR && chmod -R 777 /tmp/NUMBA_CACHE_DIR
61
 
 
 
 
 
 
 
62
  RUN python -c 'import torch; from dcase24t6.nn.hub import baseline_pipeline; model = baseline_pipeline()'
63
 
64
  ENV GRADIO_SERVER_PORT=7860
 
59
  mkdir /nltk_data && chmod -R 777 /nltk_data && \
60
  mkdir -p /tmp/NUMBA_CACHE_DIR && chmod -R 777 /tmp/NUMBA_CACHE_DIR
61
 
62
+ RUN pip cache purge && \
63
+ apt-get clean autoclean && \
64
+ apt-get autoremove --yes && \
65
+ rm -rf /var/lib/{apt,dpkg,cache,log}/
66
+ # rm -rf /var/lib/apt/lists/*
67
+
68
  RUN python -c 'import torch; from dcase24t6.nn.hub import baseline_pipeline; model = baseline_pipeline()'
69
 
70
  ENV GRADIO_SERVER_PORT=7860