mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Rework docker setup
This commit is contained in:
18
docker/dockerfiles/restserver.dockerfile
Normal file
18
docker/dockerfiles/restserver.dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM alpine:latest
|
||||
|
||||
ARG version=
|
||||
ARG restserver_url=
|
||||
|
||||
RUN apk add --no-cache openjdk11 bash tzdata
|
||||
|
||||
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"]
|
||||
EXPOSE 7880
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=30s \
|
||||
CMD wget --spider http://localhost:7880
|
Reference in New Issue
Block a user