| ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache bash curl libc6-compat libstdc++ openjdk17-jre-headless # buildkit |
| RUN /bin/sh -c addgroup -S languagetool && adduser -S languagetool -G languagetool # buildkit |
| COPY --chown=languagetool /dist . # buildkit |
| WORKDIR /LanguageTool |
| RUN /bin/sh -c mkdir /nonexistent && touch /nonexistent/.languagetool.cfg # buildkit |
| COPY --chown=languagetool start.sh start.sh # buildkit |
| COPY --chown=languagetool config.properties config.properties # buildkit |
| USER languagetool |
| HEALTHCHECK &{["CMD-SHELL" "curl --fail --data \"language=en-US&text=a simple test\" http://localhost:8010/v2/check || exit 1"] "0s" "10s" "5s" "0s" '\x00'} |
| CMD ["bash" "start.sh"] |
| EXPOSE map[8010/tcp:{}] |
| USER root |
| RUN /bin/sh -c apk add fasttext # buildkit |
| USER languagetool |