Skip to content

Commit

Permalink
Add Dockerfile for standalone deployment and import traceback for err…
Browse files Browse the repository at this point in the history
…or handling
  • Loading branch information
alevilar committed Dec 17, 2024
1 parent 6f8899f commit 6960b49
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile.standalone
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions src/common/ComandosHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from escpos import printer
from common.fiscalberry_logger import getLogger
from queue import Queue
import traceback

configberry = Configberry()

Expand Down

0 comments on commit 6960b49

Please sign in to comment.