Skip to content

Commit

Permalink
[docker] cleanup /tmp (#1990)
Browse files Browse the repository at this point in the history
This saves ~28MB

```shell
root@4f33863bee35:/tmp# ll
total 2936
drwxrwxrwt  1 root root    4096 Sep  1 21:20 ./
drwxr-xr-x  1 root root    4096 Sep  1 21:52 ../
drwxr-xr-x 12 root root    4096 Sep  1 21:18 mDNSResponder-1790.80.10/
-rw-r--r--  1 root root 2989629 Sep  1 21:18 mDNSResponder-1790.80.10.tar.gz
drwxr-xr-x  3 root root    4096 Sep  1 21:20 npm-2233-869f1b4a/
root@4f33863bee35:/tmp# du -sh . --block-size=M
28M     .
```
  • Loading branch information
lmnotran authored Sep 5, 2023
1 parent 29d8dc0 commit 0cd0b9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etc/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ RUN ([ "${DNS64}" = "0" ] || chmod 644 /etc/bind/named.conf.options) \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $OTBR_BUILD_DEPS \
&& ([ "${RELEASE}" = 1 ] || apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false "$OTBR_NORELEASE_DEPS";) \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
))

ENTRYPOINT ["/app/etc/docker/docker_entrypoint.sh"]
Expand Down

0 comments on commit 0cd0b9a

Please sign in to comment.