diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -1,22 +1,25 @@ FROM openjdk:slim -ARG VERSION=5.7 +ARG VERSION=6.3 +SHELL ["/bin/bash", "-eufo", "pipefail", "-c"] + +# hadolint ignore=DL3008 RUN apt-get update && \ - apt-get install -y \ + apt-get upgrade -y && \ + apt-get install --no-install-recommends -y \ curl \ libarchive-tools && \ + curl --progress-bar "https://languagetool.org/download/LanguageTool-$VERSION.zip" |\ + bsdtar -x -f - && \ rm -rf /var/lib/apt/lists/* -RUN curl --progress-bar "https://languagetool.org/download/LanguageTool-$VERSION.zip" |\ - bsdtar -x -f - - RUN adduser \ --home /LanguageTool-$VERSION \ --no-create-home languagetool -ADD --chown=languagetool misc/init.sh / -ADD --chown=languagetool misc/ngram.sh / +COPY --chown=languagetool misc/init.sh / +COPY --chown=languagetool misc/ngram.sh / WORKDIR /LanguageTool-$VERSION HEALTHCHECK --timeout=10s --start-period=5s \ |