mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 15:15:58 +00:00
Simplify consumedir.dockerfile
This commit is contained in:
parent
650685976c
commit
5df9d11d06
@ -1,19 +1,13 @@
|
|||||||
## CONSUMEDIR
|
## CONSUMEDIR
|
||||||
|
|
||||||
ARG VERSION=
|
FROM alpine:latest
|
||||||
ARG REPO=
|
LABEL maintainer="eikek0 <eike@docspell.org>"
|
||||||
|
|
||||||
# hack to use args in from
|
|
||||||
FROM ${REPO}:base-binaries-${VERSION} as docspell-base-binaries
|
|
||||||
|
|
||||||
|
|
||||||
FROM ${REPO}:base-${VERSION}
|
|
||||||
|
|
||||||
RUN apk add --no-cache curl bash inotify-tools
|
RUN apk add --no-cache curl bash inotify-tools
|
||||||
|
|
||||||
COPY --from=docspell-base-binaries /opt/docspell-tools /opt/docspell-tools
|
COPY ./tools/consumedir /opt/consumedir
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/docspell-tools/consumedir/consumedir-entrypoint.sh"]
|
ENTRYPOINT ["bash", "/opt/consumedir/consumedir-entrypoint.sh"]
|
||||||
|
|
||||||
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=10s \
|
HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=10s \
|
||||||
CMD pgrep inotifywait
|
CMD pgrep bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user