docspell/docker/dockerfiles/restserver.dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
696 B
Plaintext
Raw Normal View History

2024-07-23 00:34:10 +00:00
FROM alpine:3.20.2
2021-05-30 22:07:11 +00:00
ARG version=
ARG restserver_url=
ARG TARGETPLATFORM
2021-05-30 22:07:11 +00:00
2022-08-23 06:32:44 +00:00
RUN apk update && \
apk add --no-cache openjdk17-jre bash tzdata curl
2021-05-30 22:07:11 +00:00
WORKDIR /opt
2022-08-23 06:32:44 +00:00
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
2021-05-30 22:07:11 +00:00
ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver"]
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