diff options
author | Christian Segundo | 2023-12-30 16:05:48 +0100 |
---|---|---|
committer | Christian Segundo | 2023-12-31 12:00:02 +0100 |
commit | df2b48edbb77e40dbd93e1c097b0b1cacde8a74a (patch) | |
tree | 701e2a8989409c507a239742292a98ee712c2487 /Dockerfile | |
parent | 5b010f1047a8ac1203cb1d3b3ce95a0320b84be9 (diff) | |
download | languagetool-df2b48edbb77e40dbd93e1c097b0b1cacde8a74a.tar.gz |
bump to 6.3
ensure it never expands to /
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 \ |