diff options
author | Christian Segundo | 2023-12-31 00:49:58 +0100 |
---|---|---|
committer | Christian Segundo | 2023-12-31 12:00:02 +0100 |
commit | c5f325e580540d81903360920094aafcc6ad4008 (patch) | |
tree | e20b666c71b912bb4103a2421b3ca2d547f16328 /Dockerfile | |
parent | df2b48edbb77e40dbd93e1c097b0b1cacde8a74a (diff) | |
download | languagetool-c5f325e580540d81903360920094aafcc6ad4008.tar.gz |
add goss
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -2,6 +2,12 @@ FROM openjdk:slim ARG VERSION=6.3 +WORKDIR /home/languagetool + +RUN adduser \ + --home /home/languagetool \ + --no-create-home languagetool + SHELL ["/bin/bash", "-eufo", "pipefail", "-c"] # hadolint ignore=DL3008 @@ -14,16 +20,12 @@ RUN apt-get update && \ bsdtar -x -f - && \ rm -rf /var/lib/apt/lists/* -RUN adduser \ - --home /LanguageTool-$VERSION \ - --no-create-home languagetool - COPY --chown=languagetool misc/init.sh / COPY --chown=languagetool misc/ngram.sh / -WORKDIR /LanguageTool-$VERSION HEALTHCHECK --timeout=10s --start-period=5s \ CMD curl --fail --data "language=en-US&text=healthcheck test" http://localhost:8010/v2/check || exit 1 CMD [ "bash", "/init.sh" ] +WORKDIR /home/languagetool/LanguageTool-$VERSION USER languagetool EXPOSE 8010 |