From df2b48edbb77e40dbd93e1c097b0b1cacde8a74a Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 30 Dec 2023 16:05:48 +0100 Subject: bump to 6.3 ensure it never expands to / --- Dockerfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 81c855c..f138778 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ -- cgit v1.2.3