Skip to content

Commit

Permalink
feat: Added info about the used weasyprint docker-image version
Browse files Browse the repository at this point in the history
Refs: #104
  • Loading branch information
pbezliapovich committed Jul 30, 2024
1 parent 34779f5 commit 5c31994
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt-get update && \

ENV WORKING_DIR=/opt/weasyprint
ENV CHROME_EXECUTABLE_PATH=/usr/bin/chromium
ENV SERVICE_VERSION=$APP_VERSION
ENV WEASYPRINT_SERVICE_VERSION=$APP_VERSION

WORKDIR ${WORKING_DIR}

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Service providing REST API to use WeasyPrint functionality

```bash
docker build \
--build-arg APP_VERSION=62.3.0 \
--file Dockerfile \
--tag weasyprint-service:62.3.0 .
```
Expand Down
2 changes: 1 addition & 1 deletion app/WeasyprintController.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def version():
return {
"python": platform.python_version(),
"weasyprint": weasyprint.__version__,
"serviceVersion": os.environ.get('SERVICE_VERSION')
"weasyprintServiceVersion": os.environ.get('WEASYPRINT_SERVICE_VERSION')
}


Expand Down

0 comments on commit 5c31994

Please sign in to comment.