Skip to content

Commit

Permalink
docker image update with missing libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefbaranec committed Feb 11, 2025
1 parent fb8cfa5 commit b8e87c6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN apt-get update && \
apt-get install -y \
python3 \
python3-pip \
libgl1 libglib2.0-0 \
python3-venv \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -26,4 +27,8 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY config.json /usr/autotag/
COPY src/ /usr/autotag/src/

ENTRYPOINT ["/usr/lang-detect/venv/bin/python3", "/usr/autotag/src/main.py"]
ENTRYPOINT ["/usr/autotag/venv/bin/python3", "/usr/autotag/src/main.py"]


# docker build --rm -t pdfix-autotag-textract .
# docker run -it -v $(pwd):/usr/pdfix -w /usr/pdfix autotag-textract-arm64 autotag -i input.pdf -o output.pdf
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A Docker image that automatically tags a PDF file using AWS Textract.
- [Table of Contents](#table-of-contents)
- [Getting Started](#getting-started)
- [Run using Command Line Interface](#run-using-command-line-interface)
- [How to pass AWS credentials](#how-to-pass-aws-credentials)
- [Run using REST API](#run-using-rest-api)
- [Exporting Configuration for Integration](#exporting-configuration-for-integration)
- [License](#license)
Expand All @@ -34,6 +35,14 @@ For more detailed information about the available command-line arguments, you ca
docker run --rm pdfix/autotag-textract:latest --help
```

## How to pass AWS credentials

The access credentials can be passed by sharing the directory ~/.aws into the docker container. To do this add this parameter to the cli.
See the AWS guide to setup your access keys locally.
```bash
-v ~/.aws:/root/.aws
```

## Run using REST API
Comming soon. Please contact us.

Expand Down

0 comments on commit b8e87c6

Please sign in to comment.