Python build image

This commit is contained in:
2021-07-14 10:14:16 -04:00
parent 3562021da7
commit 4141f42ad8
3 changed files with 14 additions and 0 deletions

3
build.python.bat Normal file
View File

@ -0,0 +1,3 @@
@echo off
docker build -f "./backend/Py.Dockerfile" .

6
build.sh Normal file
View File

@ -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

5
run.python.bat Normal file
View File

@ -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