Skip to content

Commit

Permalink
fix(docker/Dockerfiles): fix typo, keep pip cache
Browse files Browse the repository at this point in the history
nkemnitz committed Jan 27, 2025
1 parent c587166 commit ac596bc
Showing 2 changed files with 2 additions and 13 deletions.
7 changes: 1 addition & 6 deletions docker/Dockerfile.all
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& rm -rf /root/.cache/bazel/ \
&& apt-mark auto '.*' > /dev/null \
&& apt-mark manual $savedAptMark zstd parallel coreutils libtbb2 libjemalloc2 \
&& find /usr/local/lib /opt/conda f -executable -exec ldd '{}' ';' \
&& find /usr/local/lib /opt/conda -type f -executable -exec ldd '{}' ';' \
| awk '/=>/ { print $(NF-1) }' \
| sort -u \
| grep -v not \
@@ -31,7 +31,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
| xargs -r apt-mark manual \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false \
&& rm -rf \
/root/.cache/pip/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
@@ -40,8 +39,4 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \

COPY . /opt/zetta_utils/

# RUN apt-get --purge autoremove -y build-essential wget libboost-dev
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/*

RUN zetta --help
8 changes: 1 addition & 7 deletions docker/Dockerfile.all_pcg
Original file line number Diff line number Diff line change
@@ -18,10 +18,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
&& cd /opt/zetta_utils \
&& ./install_zutils.py --dockerfile --mode modules --pcg \
&& rm -rf /root/.cache/bazel/ \
#
&& apt-mark auto '.*' > /dev/null \
&& apt-mark manual $savedAptMark zstd parallel coreutils libtbb2 libjemalloc2 \
&& find /usr/local/lib /opt/conda f -executable -exec ldd '{}' ';' \
&& find /usr/local/lib /opt/conda -type f -executable -exec ldd '{}' ';' \
| awk '/=>/ { print $(NF-1) }' \
| sort -u \
| grep -v not \
@@ -32,7 +31,6 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
| xargs -r apt-mark manual \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false \
&& rm -rf \
/root/.cache/pip/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
@@ -41,8 +39,4 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \

COPY . /opt/zetta_utils/

# RUN apt-get --purge autoremove -y build-essential wget libboost-dev
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/*

RUN zetta --help

0 comments on commit ac596bc

Please sign in to comment.