cleanup the image

This commit is contained in:
jem 2021-03-12 15:40:26 +01:00
parent 59e7a53088
commit a040a87f86

View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
function main() {
apt-get update > /dev/null; apt-get update > /dev/null;
apt-get install -qqy ca-certificates curl wget gnupg > /dev/null apt-get install -qqy ca-certificates curl wget gnupg > /dev/null
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list' sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
@ -13,3 +14,9 @@ update-ca-certificates
install -m 0400 /tmp/functions.sh /usr/local/lib/ install -m 0400 /tmp/functions.sh /usr/local/lib/
install -m 0400 /tmp/pg-functions.sh /usr/local/lib/ install -m 0400 /tmp/pg-functions.sh /usr/local/lib/
install -m 0400 /tmp/file-functions.sh /usr/local/lib/ install -m 0400 /tmp/file-functions.sh /usr/local/lib/
cleanupDocker
}
source /tmp/install_functions.sh
main