docspell/docker/dockerfiles/restserver.dockerfile
eikek a5315f44ee Update joex docker image
Must drop wkhtmltopdf because it is not available anymore in alpine.
Weasyprint is supposed to be a drop-in replacement, doing poorer
outputs in my eyes. There are alternatives like downloading
pre-compiled binaries, but not for all platforms.
2022-11-07 10:31:25 +01:00

23 lines
725 B
Docker

FROM alpine:3
ARG version=
ARG restserver_url=
ARG TARGETPLATFORM
RUN apk update && \
apk add --no-cache openjdk17-jre bash tzdata curl && \
apk add 'zlib=1.2.12-r3'
WORKDIR /opt
RUN curl -L -O ${restserver_url:-https://github.com/eikek/docspell/releases/download/v$version/docspell-restserver-$version.zip} && \
unzip docspell-restserver-*.zip && \
rm docspell-restserver-*.zip && \
ln -snf docspell-restserver-* docspell-restserver && \
rm docspell-restserver/conf/docspell-server.conf
ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver"]
EXPOSE 7880
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=30s \
CMD wget --spider http://localhost:7880/api/info/version