cleanup after build

This commit is contained in:
f 2022-02-15 10:23:07 -03:00
parent 6b23dd47e2
commit 280b3b8897

View file

@ -1,7 +1,13 @@
#!/bin/sh #!/bin/sh
set -e
test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS} test -n "${EXTRA_PKGS}" && apk add --no-cache ${EXTRA_PKGS}
test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS} test -n "${EXTRA_GEMS}" && gem install --no-user-install --no-document ${EXTRA_GEMS}
su-exec builder /usr/local/bin/gem-compiler su-exec builder /usr/local/bin/gem-compiler
exit_status=$?
test -n "${EXTRA_PKGS}" && apk del ${EXTRA_PKGS}
test -n "${EXTRA_GEMS}" && gem uninstall ${EXTRA_GEMS}
exit ${exit_status}