mirror of
https://github.com/TheAnachronism/docspell.git
synced 2024-11-13 02:31:10 +00:00
3d074c5fc9
- Using a script in `/usr/local/bin ` now to overwrit the default *ocrmypdf* version and thus replaced the approach using a bash function - Also had to add volume mapping to docker call **ATTENTION** the path /tmp/docspell-convert:/tmp/docspell-convert must be mapped when starting Docspell's docker image!
24 lines
543 B
Docker
24 lines
543 B
Docker
## JOEX
|
|
|
|
ARG VERSION=
|
|
ARG REPO=
|
|
|
|
# hack to use args in from
|
|
FROM ${REPO}:base-binaries-${VERSION} as docspell-base-binaries
|
|
|
|
|
|
FROM ${REPO}:joex-base-${VERSION}
|
|
|
|
ENV OCRMYPDF_VERSION=v11.2.1
|
|
|
|
COPY --from=docspell-base-binaries /opt/docspell-joex /opt/docspell-joex
|
|
COPY joex-entrypoint.sh /opt/joex-entrypoint.sh
|
|
COPY joex-ocrmypdf.sh /usr/local/bin/joex-ocrmypdf.sh
|
|
|
|
ENTRYPOINT ["/opt/joex-entrypoint.sh"]
|
|
CMD ["/opt/docspell.conf"]
|
|
EXPOSE 7878
|
|
|
|
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=10s \
|
|
CMD pgrep -f joex/lib
|