mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
do not build zipapps because theyre slow
This commit is contained in:
parent
8d87c063cd
commit
1f28369805
1 changed files with 11 additions and 1 deletions
12
build.sh
12
build.sh
|
@ -3,6 +3,16 @@ pip install -r requirements.txt --target="$DIR"
|
||||||
|
|
||||||
cp -r nginx_configurator "$DIR"
|
cp -r nginx_configurator "$DIR"
|
||||||
|
|
||||||
python3 -m zipapp -p "/bin/python3" -m "nginx_configurator.main:cli" -o ncc "$DIR"
|
#python3 -m zipapp -p "/bin/python3" -m "nginx_configurator.main:cli" -o ncc "$DIR"
|
||||||
|
|
||||||
|
# create entrypoint
|
||||||
|
cat > "$DIR/ncc" <<EOF
|
||||||
|
#!/bin/python3
|
||||||
|
from nginx_configurator import main
|
||||||
|
main.cli()
|
||||||
|
EOF
|
||||||
|
chmod +x "$DIR/ncc"
|
||||||
|
|
||||||
|
tar -cf ncc.tar -C "$DIR" .
|
||||||
|
|
||||||
rm -r "$DIR"
|
rm -r "$DIR"
|
||||||
|
|
Loading…
Reference in a new issue