mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Docker buildx setup for multiple architectures
This commit is contained in:
@ -2,8 +2,11 @@ FROM alpine:latest
|
||||
|
||||
ARG version=
|
||||
ARG restserver_url=
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
RUN apk add --no-cache openjdk11 bash tzdata
|
||||
RUN JDKPKG="openjdk11"; \
|
||||
if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then JDKPKG="openjdk8"; fi; \
|
||||
apk add --no-cache $JDKPKG bash tzdata
|
||||
|
||||
WORKDIR /opt
|
||||
RUN wget ${restserver_url:-https://github.com/eikek/docspell/releases/download/v$version/docspell-restserver-$version.zip} && \
|
||||
@ -11,7 +14,7 @@ RUN wget ${restserver_url:-https://github.com/eikek/docspell/releases/download/v
|
||||
rm docspell-restserver-*.zip && \
|
||||
ln -snf docspell-restserver-* docspell-restserver
|
||||
|
||||
ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver"]
|
||||
ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver", "-J-XX:+UseG1GC"]
|
||||
EXPOSE 7880
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=30s \
|
||||
|
Reference in New Issue
Block a user