Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile to use #27

Open
Heiss opened this issue Jun 7, 2024 · 0 comments
Open

Dockerfile to use #27

Heiss opened this issue Jun 7, 2024 · 0 comments

Comments

@Heiss
Copy link

Heiss commented Jun 7, 2024

Hey,

i added a Dockerfile for myself, so i can run your tool without compromising my setup. Feel free to include / modify / ignore. :)

FROM python:alpine

VOLUME [ "/app" ]
WORKDIR /app

RUN pip install paperless-asn-qr-codes

ENTRYPOINT [ "paperless-asn-qr-codes" ]
CMD [ "1", "/app/labels.pdf" ]

Usage

If build with docker build -t paperless-asn-qr-code ., it can be used as follows:

docker run -it -v ./output:/app paperless-asn-qr-codes
# on windows: docker run -v .\ouput:/app paperless-asn-qr-codes

This creates a folder output in your current folder and place a labels.pdf in this directory. If you want to specify another starting label number, use the following command:

docker run -it -v ./output:/app paperless-asn-qr-codes <YOUR-NUMBER> labels.pdf
# on windows: docker run -it -v .\output:/app paperless-asn-qr-codes<YOUR-NUMBER> labels.pdf

So, if you need other options from paperless-asn-qr-codes, add it to the last command shown above.

If you want to get inside of the container, use the following:

docker run -it -v ./output:/app --entrypoint sh paperless-asn-qr-codes
# on windows: docker run -it -v .\output:/app --entrypoint sh paperless-asn-qr-codes 

Then you can use it like it is locally installed.

Bye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant