Skip to content

Commit 2f7d187

Browse files
authored
chore(rootfs/Dockerfile): remove cached files (#153)
1 parent f8a4407 commit 2f7d187

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rootfs/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ RUN \
9999
&& apt-get purge --auto-remove -y libffi-dev python-dev python-pip \
100100
&& apt-get autoremove -y \
101101
&& apt-get clean -y \
102-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc
102+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc $GOPATH/pkg/* $GOPATH/src/* /root/cache /root/.cache \
103+
&& go clean -cache -testcache -modcache
103104

104105
WORKDIR /go
105106

0 commit comments

Comments
 (0)