Skip to content

Commit 42bb19d

Browse files
authored
1 parent 9340e42 commit 42bb19d

4 files changed

Lines changed: 3 additions & 20 deletions

File tree

Dockerfile.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
4847
RUN 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)

clean-layer.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,4 @@ apt-get clean
1717
# Ensures the current working directory won't be deleted
1818
cd /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/*

tpu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
3131
RUN /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.

tpu/clean-layer.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,4 @@ apt-get clean
1919
# Ensures the current working directory won't be deleted
2020
cd /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/*

0 commit comments

Comments
 (0)