mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add web build
This commit is contained in:
11
docker-all.sh
Normal file → Executable file
11
docker-all.sh
Normal file → Executable file
@@ -1,3 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
ROOT=${PWD}
|
||||||
|
|
||||||
|
#### Build web
|
||||||
|
echo "Build web"
|
||||||
|
cd "${ROOT}/web" || exit 1
|
||||||
|
npm install --silent
|
||||||
|
npm run --silent build-js
|
||||||
|
cp "${ROOT}/web/dest/index.html" "${ROOT}/server/web/pages/template/pages/"
|
||||||
|
cd ..
|
||||||
|
|
||||||
sudo docker run --rm -v "$PWD":/usr/src/torr -w /usr/src/torr golang:1.16 ./build-all.sh
|
sudo docker run --rm -v "$PWD":/usr/src/torr -w /usr/src/torr golang:1.16 ./build-all.sh
|
||||||
sudo chmod 0777 ./dist/*
|
sudo chmod 0777 ./dist/*
|
||||||
Reference in New Issue
Block a user