diff options
author | Kyrylo Yatsenko <hedrok@gmail.com> | 2025-06-21 22:42:58 +0300 |
---|---|---|
committer | Kyrylo Yatsenko <hedrok@gmail.com> | 2025-06-22 12:57:54 +0300 |
commit | 92ff04087fb2e216aeadd86c9ca66605ac005e81 (patch) | |
tree | ea640894076fc30bd1083b31deb64043b1dc63a7 /scripts/package-build/udp-broadcast-relay/build.py | |
parent | 3222553a260ae524a5c47801f4819a1825e999c2 (diff) | |
download | vyos-build-92ff04087fb2e216aeadd86c9ca66605ac005e81.tar.gz vyos-build-92ff04087fb2e216aeadd86c9ca66605ac005e81.zip |
Docker: T7568: clean apt cache + clean some /tmp files
This saves ~50Mb for vyos-build image: 2.04Gb -> 1.99Gb
And ~19Mb for vyos image: 155Mb -> 136Mb
Docker stores all files created in each layer so
command
```
RUN wget -O /tmp/open-vmdk-master.zip https://github.com/.../master.zip && \
unzip -d /tmp/ /tmp/open-vmdk-master.zip && \
cd /tmp/open-vmdk-master/ && make && make install
```
will store open-vmdk-master.zip and /tmp/open-vmdk-master
in the image even though there is a cleanup command later:
```
RUN rm -rf /tmp/*
```
The cleanup command just makes these files invisible in last layer.
So temporary file must be removed in same RUN command
not to be stored in the image.
This commit adds such removals.
Diffstat (limited to 'scripts/package-build/udp-broadcast-relay/build.py')
0 files changed, 0 insertions, 0 deletions