diff --git a/Dockerfile.standalone b/Dockerfile.standalone new file mode 100644 index 0000000000..88392763b5 --- /dev/null +++ b/Dockerfile.standalone @@ -0,0 +1,16 @@ +FROM debian:bookworm-slim + +# Instalar dependencias necesarias +RUN apt-get update && apt-get install -y python3 libstdc++6 cups-client + +RUN apt-get update && apt-get install -y wget +RUN wget https://github.com/paxapos/fiscalberry/releases/latest/download/fiscalberry-lin -O /usr/local/bin/fiscalberry-lin + +RUN chmod +x /usr/local/bin/fiscalberry-lin + +RUN apt-get clean && rm -rf /var/lib/apt/lists/* +CMD ["/usr/local/bin/fiscalberry-lin"] + + +# rememter to create volume for config file in /root/.config/Fiscalberry/config.ini +# echo docker run -d --name fiscalberry --privileged --volume=/home/$USER/.config/Fiscalberry:/root/.config/Fiscalberry --restart=always fiscalberry-standalone diff --git a/src/common/ComandosHandler.py b/src/common/ComandosHandler.py index d766d97f2f..2fb914c485 100644 --- a/src/common/ComandosHandler.py +++ b/src/common/ComandosHandler.py @@ -10,6 +10,7 @@ from escpos import printer from common.fiscalberry_logger import getLogger from queue import Queue +import traceback configberry = Configberry()