2021-11-30 21:42:48 +00:00
|
|
|
FROM alpine:3.14
|
2021-05-30 22:07:11 +00:00
|
|
|
|
|
|
|
ARG version=
|
|
|
|
ARG restserver_url=
|
2021-06-07 23:58:05 +00:00
|
|
|
ARG TARGETPLATFORM
|
2021-05-30 22:07:11 +00:00
|
|
|
|
2022-03-04 20:23:29 +00:00
|
|
|
RUN JDKPKG="openjdk11-jre"; \
|
|
|
|
if [[ $TARGETPLATFORM = linux/arm* ]]; then JDKPKG="openjdk8-jre"; fi; \
|
|
|
|
apk update && \
|
2022-05-25 21:49:58 +00:00
|
|
|
apk add --no-cache $JDKPKG bash tzdata && \
|
2022-08-12 15:30:57 +00:00
|
|
|
apk add 'zlib=1.2.12-r3'
|
2021-05-30 22:07:11 +00:00
|
|
|
|
|
|
|
WORKDIR /opt
|
|
|
|
RUN wget ${restserver_url:-https://github.com/eikek/docspell/releases/download/v$version/docspell-restserver-$version.zip} && \
|
|
|
|
unzip docspell-restserver-*.zip && \
|
|
|
|
rm docspell-restserver-*.zip && \
|
2021-10-25 09:27:17 +00:00
|
|
|
ln -snf docspell-restserver-* docspell-restserver && \
|
|
|
|
rm docspell-restserver/conf/docspell-server.conf
|
2021-05-30 22:07:11 +00:00
|
|
|
|
2021-06-07 23:58:05 +00:00
|
|
|
ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver", "-J-XX:+UseG1GC"]
|
2021-05-30 22:07:11 +00:00
|
|
|
EXPOSE 7880
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=30s \
|
2021-08-11 17:21:41 +00:00
|
|
|
CMD wget --spider http://localhost:7880/api/info/version
|