File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ RUN uv pip install --system --no-cache "pycuda"
4444
4545# Use a fixed apt-get repo to stop intermittent failures due to flaky httpredir connections,
4646# as described by Lionel Chan at http://stackoverflow.com /a/37426929/5881346
47- RUN /tmp/clean-layer.sh
4847RUN sed -i " s/httpredir.debian.org/debian.uchicago.edu/" /etc/apt/sources.list && \
4948 apt-get update --allow-releaseinfo-change && \
5049 # Needed by lightGBM (GPU build)
Original file line number Diff line number Diff line change @@ -17,12 +17,4 @@ apt-get clean
1717# Ensures the current working directory won't be deleted
1818cd /usr/local/src/
1919# Delete source files used for building binaries
20- rm -rf /usr/local/src/*
21-
22- # More clean up to save disk space
23- rm -rf /var/lib/apt/lists/*
24- find /tmp -mindepth 1 ! -name ' clean-layer.sh' -delete 2> /dev/null || true
25- rm -rf /root/.cache
26- rm -rf /var/cache/apt/archives/*
27- find /usr -name ' *.pyc' -delete 2> /dev/null || true
28- find /usr -name ' __pycache__' -type d -exec rm -rf {} + 2> /dev/null || true
20+ rm -rf /usr/local/src/*
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ ADD patches/kaggle_datasets.py /root/.local/lib/${PYTHON_VERSION_PATH}/site-pack
3030# https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
3131RUN /tmp/clean-layer.sh && \
3232 apt-get update && \
33- apt-get install --no-install-recommends -y libavcodec61 libavformat61 libswscale8 libsm6 libxext6 && \
33+ apt-get install --no-install-recommends -y ffmpeg libsm6 libxext6 && \
3434 /tmp/clean-layer.sh
3535
3636# Install all the packages together for maximum compatibility.
Original file line number Diff line number Diff line change @@ -19,12 +19,4 @@ apt-get clean
1919# Ensures the current working directory won't be deleted
2020cd /usr/local/src/
2121# Delete source files used for building binaries
22- rm -rf /usr/local/src/*
23-
24- # More clean up to save disk space
25- rm -rf /var/lib/apt/lists/*
26- find /tmp -mindepth 1 ! -name ' clean-layer.sh' -delete 2> /dev/null || true
27- rm -rf /root/.cache
28- rm -rf /var/cache/apt/archives/*
29- find /usr -name ' *.pyc' -delete 2> /dev/null || true
30- find /usr -name ' __pycache__' -type d -exec rm -rf {} + 2> /dev/null || true
22+ rm -rf /usr/local/src/*
You can’t perform that action at this time.
0 commit comments