From 6275885fb3d9c71cbb60f541901916d04ab0793a Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Mon, 20 Mar 2023 15:58:07 +0800 Subject: [PATCH] build: docker compile script --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d3af854 --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +WORKDIR="/var/www/unlock-music" + +docker run --rm -it -v ${WORKDIR}:/build/ --workdir /build/ --entrypoint ./scripts/build-wasm.sh emscripten/emsdk:3.0.0 + +docker run --rm -it -v ${WORKDIR}:/build/ --workdir /build/ --entrypoint bash node:16.18-bullseye -c "npm ci && npm run build"