Skip to content

Commit c64242f

Browse files
committed
[GAP9-Docker] Compress docker size by deleting gap9-sdk build files
1 parent b817162 commit c64242f

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Container/Dockerfile.gap9

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,18 @@ RUN apt-get update && \
2828
rm -rf /var/lib/apt/lists/*
2929

3030
RUN --mount=type=cache,target=/ccache \
31-
ccache -z && make gap9-toolchain
31+
ccache -z && make gap9-toolchain && \
32+
rm -rf /app/toolchain/gap9-toolchain
3233

3334
RUN --mount=type=ssh \
3435
--mount=type=cache,target=/ccache \
3536
--mount=type=cache,target=/root/.cache/pip \
3637
ccache -z && \
3738
make gap9-sdk && \
38-
ccache -s
39+
ccache -s && \
40+
rm -rf /app/toolchain/gap9-sdk && \
41+
rm -rf /app/install/gap9-sdk/build && \
42+
rm -rf /app/install/gap9-sdk/.git && \
43+
rm -rf /app/install/gap9-sdk/nn_menu && \
44+
find /app/install/gap9-sdk -name "*.o" -delete && \
45+
find /app/install/gap9-sdk -name "*.a" -not -path "*/lib/*" -delete

0 commit comments

Comments
 (0)