languagetool (sha256:9fd9523aeaeabf71386ccdaf18c90efdef53395f33ce62d5c1bd7bcd50294306)

Published 2026-04-24 21:49:17 +02:00 by lycaknight in lycaknight/languagetool

Installation

docker pull git.lycaknight.de/lycaknight/languagetool@sha256:9fd9523aeaeabf71386ccdaf18c90efdef53395f33ce62d5c1bd7bcd50294306
sha256:9fd9523aeaeabf71386ccdaf18c90efdef53395f33ce62d5c1bd7bcd50294306

Image layers

ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG TARGETARCH=amd64
RUN |1 TARGETARCH=amd64 /bin/sh -c apk add --no-cache bash curl fasttext libc6-compat libstdc++ openjdk17-jre-headless # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c if [ "$TARGETARCH" = "arm64" ]; then apk add --no-cache hunspell zip; fi # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c addgroup -S languagetool && adduser -S languagetool -G languagetool # buildkit
COPY --chown=languagetool:languagetool /dist/LanguageTool /LanguageTool # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c if [ "$TARGETARCH" = "arm64" ]; then echo "Applying ARM64 workaround for Hunspell..."; HUNSPELL_SRC=$(find /usr/lib -name 'libhunspell-*.so*' -type f | head -n 1); if [ -z "$HUNSPELL_SRC" ]; then echo "Unable to locate hunspell shared library in /usr/lib"; exit 1; fi; mkdir -p /tmp/hunspell/linux-aarch64; cp "$HUNSPELL_SRC" /tmp/hunspell/linux-aarch64/libhunspell.so; (cd /tmp/hunspell && zip /LanguageTool/libs/hunspell.jar linux-aarch64/libhunspell.so); rm -rf /tmp/hunspell; fi # buildkit
WORKDIR /LanguageTool
RUN |1 TARGETARCH=amd64 /bin/sh -c mkdir /nonexistent && touch /nonexistent/.languagetool.cfg # buildkit
COPY --chown=languagetool:languagetool start.sh config.properties ./ # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c install -d -m 755 /fastText && curl -L https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin -o /fastText/lid.176.bin && chown -R languagetool:languagetool /fastText # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c set -eux; echo "fasttextModel=/fastText/lid.176.bin" >> config.properties; echo "fasttextBinary=$(command -v fasttext)" >> config.properties; chown languagetool:languagetool 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 [8010/tcp]
USER root
RUN /bin/sh -c apk add fasttext # buildkit
USER languagetool
Details
Container
2026-04-24 21:49:17 +02:00
3
2026-10-21 19:22:25 +02:00
OCI / Docker
linux/amd64
431 MiB
Versions (1) View all
latest 2026-04-24