docspell/docker/dockerfiles/restserver.dockerfile

22 lines
716 B
Plaintext
Raw Normal View History

2021-05-30 22:07:11 +00:00
FROM alpine:latest
ARG version=
ARG restserver_url=
ARG TARGETPLATFORM
2021-05-30 22:07:11 +00:00
RUN JDKPKG="openjdk11"; \
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then JDKPKG="openjdk8"; fi; \
apk add --no-cache $JDKPKG bash tzdata
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 && \
ln -snf docspell-restserver-* docspell-restserver
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