Reduce amount layers of the docker image (#4448)

* Reduce amount layers of the docker image

* Fix models file name
This commit is contained in:
Felipe Santos
2022-11-21 22:31:39 -03:00
committed by GitHub
parent c4d442450b
commit f4187d6b83
8 changed files with 185 additions and 109 deletions

15
docker/install_s6_overlay.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -euxo pipefail
s6_arch="${TARGETARCH}"
if [[ "${TARGETARCH}" == "amd64" ]]; then
s6_arch="amd64"
elif [[ "${TARGETARCH}" == "arm" ]]; then
s6_arch="armhf"
elif [[ "${TARGETARCH}" == "arm64" ]]; then
s6_arch="aarch64"
fi
wget -qO /tmp/s6-overlay-installer "https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-${s6_arch}-installer"
chmod +x /tmp/s6-overlay-installer
/tmp/s6-overlay-installer /rootfs/