diff options
author | Christian Segundo | 2022-04-10 12:00:33 +0200 |
---|---|---|
committer | Christian Segundo | 2022-04-10 12:03:30 +0200 |
commit | fe4774d97c2c6faeddd8414829d7fe443d4837aa (patch) | |
tree | 2bdbf1c5e7cf336a95cf97309434ebd2cd000e71 /Dockerfile | |
parent | 73279ea16cfc28856302ac7ecdfe28026507f060 (diff) | |
download | languagetool-fe4774d97c2c6faeddd8414829d7fe443d4837aa.tar.gz |
Add support for HTTPServerConfig options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -11,10 +11,16 @@ RUN apt-get update && \ RUN curl --progress-bar "https://languagetool.org/download/LanguageTool-$VERSION.zip" |\ bsdtar -x -f - -ADD misc/init.sh /init.sh -ADD misc/ngram.sh /ngram.sh +RUN adduser \ + --home /LanguageTool-$VERSION \ + --no-create-home languagetool + +ADD --chown=languagetool misc/init.sh / +ADD --chown=languagetool misc/ngram.sh / WORKDIR /LanguageTool-$VERSION -CMD [ "sh", "/init.sh" ] -USER nobody +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" ] +USER languagetool EXPOSE 8010 |