Skip to content

Commit 164c536

Browse files
committed
Add tmp permission fix to clean layer
1 parent b1e0f0e commit 164c536

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/scripts/clean-layer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ apt-get clean
2424
rm -rf /usr/local/src/*
2525
# Delete cache and temp folders
2626
rm -rf /tmp/* /var/tmp/* $HOME/.cache/* /var/cache/apt/*
27+
# Fix permissions on tmp directory
28+
chmod 1777 /tmp
2729
# Remove apt lists
2830
rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/*
2931

0 commit comments

Comments
 (0)