From 4141f42ad8b8b39b09df0e60e69d3dcbe85df655 Mon Sep 17 00:00:00 2001 From: Aldarien Date: Wed, 14 Jul 2021 10:14:16 -0400 Subject: [PATCH] Python build image --- build.python.bat | 3 +++ build.sh | 6 ++++++ run.python.bat | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 build.python.bat create mode 100644 build.sh create mode 100644 run.python.bat 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