-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add an onbuild install script step
- Loading branch information
1 parent
8914607
commit c4e3dda
Showing
5 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# Copyright 2024 CS GROUP - https://www.csgroup.eu | ||
# All rights reserved | ||
# This file is provided under MIT license. See LICENSE file. | ||
|
||
apt-get autoclean --yes | ||
apt-get autoremove --yes | ||
|
||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /etc/apt/sources.list.d/* | ||
rm -rf /usr/local/src/* | ||
|
||
rm -rf /var/cache/apt/* | ||
rm -rf /root/.cache/* | ||
# including /root/.cache/pip | ||
rm -rf /usr/local/share/.cache/* | ||
# including /usr/local/share/.cache/yarn | ||
|
||
if [ -x "$(command -v npm)" ]; then | ||
npm cache clean --force | ||
rm -rf /root/.npm/* | ||
rm -rf /root/.node-gyp/* | ||
rm -rf /usr/local/share/jupyter/lab/staging/node_modules/* | ||
rm -rf /opt/*/node_modules/* | ||
fi | ||
|
||
rm -rf /tmp/* /var/tmp/* | ||
|
||
echo "Layer cleaned" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# Copyright 2024 CS GROUP - https://www.csgroup.eu | ||
# All rights reserved | ||
# This file is provided under MIT license. See LICENSE file. | ||
|
||
apt-get autoclean --yes | ||
apt-get autoremove --yes | ||
|
||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /etc/apt/sources.list.d/* | ||
rm -rf /usr/local/src/* | ||
|
||
rm -rf /var/cache/apt/* | ||
rm -rf /root/.cache/* | ||
# including /root/.cache/pip | ||
rm -rf /usr/local/share/.cache/* | ||
# including /usr/local/share/.cache/yarn | ||
|
||
if [ -x "$(command -v npm)" ]; then | ||
npm cache clean --force | ||
rm -rf /root/.npm/* | ||
rm -rf /root/.node-gyp/* | ||
rm -rf /usr/local/share/jupyter/lab/staging/node_modules/* | ||
rm -rf /opt/*/node_modules/* | ||
fi | ||
|
||
rm -rf /tmp/* /var/tmp/* | ||
|
||
echo "Layer cleaned" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# Copyright 2024 CS GROUP - https://www.csgroup.eu | ||
# All rights reserved | ||
# This file is provided under MIT license. See LICENSE file. | ||
|
||
apt-get autoclean --yes | ||
apt-get autoremove --yes | ||
|
||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /etc/apt/sources.list.d/* | ||
rm -rf /usr/local/src/* | ||
|
||
rm -rf /var/cache/apt/* | ||
rm -rf /root/.cache/* | ||
# including /root/.cache/pip | ||
rm -rf /usr/local/share/.cache/* | ||
# including /usr/local/share/.cache/yarn | ||
|
||
if [ -x "$(command -v npm)" ]; then | ||
npm cache clean --force | ||
rm -rf /root/.npm/* | ||
rm -rf /root/.node-gyp/* | ||
rm -rf /usr/local/share/jupyter/lab/staging/node_modules/* | ||
rm -rf /opt/*/node_modules/* | ||
fi | ||
|
||
rm -rf /tmp/* /var/tmp/* | ||
|
||
echo "Layer cleaned" | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# Copyright 2024 CS GROUP - https://www.csgroup.eu | ||
# All rights reserved | ||
# This file is provided under MIT license. See LICENSE file. | ||
|
||
apt-get autoclean --yes | ||
apt-get autoremove --yes | ||
|
||
rm -rf /var/lib/apt/lists/* | ||
rm -rf /etc/apt/sources.list.d/* | ||
rm -rf /usr/local/src/* | ||
|
||
rm -rf /var/cache/apt/* | ||
rm -rf /root/.cache/* | ||
# including /root/.cache/pip | ||
rm -rf /usr/local/share/.cache/* | ||
# including /usr/local/share/.cache/yarn | ||
|
||
if [ -x "$(command -v npm)" ]; then | ||
npm cache clean --force | ||
rm -rf /root/.npm/* | ||
rm -rf /root/.node-gyp/* | ||
rm -rf /usr/local/share/jupyter/lab/staging/node_modules/* | ||
rm -rf /opt/*/node_modules/* | ||
fi | ||
|
||
rm -rf /tmp/* /var/tmp/* | ||
|
||
echo "Layer cleaned" | ||
|
||
exit 0 |