diff options
| author | Max <Max-TheCat@users.noreply.github.com> | 2024-01-11 15:25:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-11 15:25:08 -0500 |
| commit | 76427c9f130adb90f90cccc84b92dd49f5147ed5 (patch) | |
| tree | 5e1ac61ffaff7040e3b85a98cee9f4fd11dac54a /scripts/build-image.sh | |
| parent | ddce4d0bdbf657de1bf11ce2722ed0435868e41d (diff) | |
Docker container version (#39)
* + Dockerfile and compose file
+ Scripts dir and startup script
+ Build image npm script
* * Moves env to file
* + Tags image with info from package.json
* Moves image creation to script
* Updates README
* Update README.md
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
---------
Co-authored-by: Maxime Jacob <mjacob-no-reply@proton.me>
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
Diffstat (limited to 'scripts/build-image.sh')
| -rwxr-xr-x | scripts/build-image.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build-image.sh b/scripts/build-image.sh new file mode 100755 index 0000000..55ef4a4 --- /dev/null +++ b/scripts/build-image.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +SPLIIT_APP_NAME=$(node -p -e "require('./package.json').name") +SPLIIT_VERSION=$(node -p -e "require('./package.json').version") + +docker buildx build --no-cache -t ${SPLIIT_APP_NAME}:${SPLIIT_VERSION} -t ${SPLIIT_APP_NAME}:latest . + +docker image prune -f |
