diff --git a/build.python.bat b/build.python.bat new file mode 100644 index 0000000..bba6326 --- /dev/null +++ b/build.python.bat @@ -0,0 +1,3 @@ +@echo off + +docker build -f "./backend/Py.Dockerfile" . diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..383910b --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +pyinstaller -F -n coingecko --clean --log-level DEBUG --distpath /app/bin/ /app/src/coingecko.py +pyinstaller -F -n mindicador --clean --log-level DEBUG --distpath /app/bin/ /app/src/miindicador.py +#python -m nuitka --follow-imports --standalone --output-dir="/app/bin" /app/src/coingecko.py +#python -m nuitka --follow-imports --standalone --output-dir="/app/bin" /app/src/miindicador.py diff --git a/run.python.bat b/run.python.bat new file mode 100644 index 0000000..86fda22 --- /dev/null +++ b/run.python.bat @@ -0,0 +1,5 @@ +@echo off + +set pwd=%cd% + +docker run -it -v "%pwd%/backend/python:/app/src" -v "%pwd%/backend/automation/bin:/app/bin" -v "%pwd%/build.sh:/app/build.sh" crypto_python