mirror of
http://124.126.16.154:8888/singularity/LuxMap.git
synced 2026-01-15 00:35:08 +08:00
chore(scripts): 🐳 增加构建脚本
This commit is contained in:
5
scripts/unix/build.sh
Normal file
5
scripts/unix/build.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
docker run --rm --init -it \
|
||||
--user $(id -u):$(id -g) \
|
||||
--volume $(pwd):/build \
|
||||
--volume "${COMPOSER_HOME:-$HOME/.composer}:/composer" \
|
||||
composer/satis build satis.json dist/
|
||||
9
scripts/windows/build.bat
Normal file
9
scripts/windows/build.bat
Normal file
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
|
||||
for /F %%i in ('chdir') do ( set current_dir=%%i)
|
||||
|
||||
docker run ^
|
||||
-ti --rm --init ^
|
||||
-v "%current_dir%":"/build" ^
|
||||
-v "%USERPROFILE%\.composer":"/composer" ^
|
||||
composer/satis build satis.json dist/
|
||||
Reference in New Issue
Block a user