Skip to content

Commit 76bc452

Browse files
committed
Remove dirs after install
1 parent 2ad8290 commit 76bc452

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

containers/labs344/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ RUN git clone https://github.com/riscv/riscv-gnu-toolchain.git \
8787
rv64im-lp64--; \
8888
"\
8989
&& \
90-
make -j"$(nproc)"
90+
make -j"$(nproc)" && \
91+
rm -rf /tmp/riscv-gnu-toolchain
9192

9293
RUN git clone https://github.com/sifive/elf2hex.git \
9394
--no-checkout \
@@ -99,7 +100,8 @@ RUN git clone https://github.com/sifive/elf2hex.git \
99100
export CPPFLAGS='-g0 -DNDEBUG' && \
100101
./configure --prefix="/usr/local" && \
101102
make -j"$(nproc)" && \
102-
make install
103+
make install && \
104+
rm -rf /tmp/elf2hex
103105

104106
RUN git clone https://github.com/riscv-software-src/riscv-isa-sim \
105107
--no-checkout \
@@ -111,7 +113,8 @@ RUN git clone https://github.com/riscv-software-src/riscv-isa-sim \
111113
export CPPFLAGS='-g0 -DNDEBUG' && \
112114
./configure --prefix="/usr/local" && \
113115
make -j"$(nproc)" && \
114-
make install
116+
make install && \
117+
rm -rf /tmp/riscv-isa-sim
115118

116119
RUN git clone https://github.com/verilator/verilator \
117120
--no-checkout \
@@ -124,7 +127,8 @@ RUN git clone https://github.com/verilator/verilator \
124127
-DCMAKE_BUILD_TYPE=Release \
125128
&& \
126129
cmake --build build -j"$(nproc)" && \
127-
cmake --install build
130+
cmake --install build && \
131+
rm -rf /tmp/verilator
128132

129133
FROM labs344-base as labs344-devel
130134
ARG TARGETARCH TARGETOS TARGETPLATFORM TARGETVARIANT

0 commit comments

Comments
 (0)