ks

docker-languagetool (sha256:33c508d9348ca7ac24228ac81c647c9042ba930480fc00c4c668d4672ed867f2)

Published 2025-08-11 09:14:51 +00:00 by ks

Installation

docker pull git.sng.rs/ks/docker-languagetool@sha256:33c508d9348ca7ac24228ac81c647c9042ba930480fc00c4c668d4672ed867f2
sha256:33c508d9348ca7ac24228ac81c647c9042ba930480fc00c4c668d4672ed867f2

About this package

Minimal Docker Image for LanguageTool with fasttext support and automatic ngrams download

Image layers

ADD alpine-minirootfs-3.22.1-aarch64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
RUN /bin/sh -c set -eux; apk add --upgrade --no-cache libretls musl-locales musl-locales-lang tzdata zlib unzip; rm -rf /var/cache/apk/* # buildkit
RUN /bin/sh -c set -eux; apk add --no-cache bash shadow libstdc++ gcompat su-exec tini xmlstarlet nss_wrapper; apk add --no-cache libxml2; rm -f /var/cache/apk/* # buildkit
RUN /bin/sh -c set -eux; groupmod --gid 783 --new-name languagetool users; adduser -u 783 -S languagetool -G languagetool -H; mkdir -p /ngrams /fasttext # buildkit
COPY /languagetool/ /languagetool # buildkit
COPY /opt/java/customjre/ /opt/java/customjre # buildkit
COPY /fastText/fasttext-upx /usr/bin/fasttext # buildkit
ENV JAVA_HOME=/opt/java/customjre langtool_languageModel=/ngrams langtool_fasttextBinary=/usr/bin/fasttext langtool_fasttextModel=/fasttext/lid.176.bin download_ngrams_for_langs=none MAP_UID=783 MAP_GID=783 LOG_LEVEL=INFO LOGBACK_CONFIG=./logback.xml DISABLE_FILE_OWNER_FIX=false DISABLE_FASTTEXT=false LISTEN_PORT=8081 CONTAINER_MODE=default
ENV PATH=/opt/java/customjre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
WORKDIR /languagetool
HEALTHCHECK &{["CMD-SHELL" "wget --quiet --post-data \"language=en-US&text=a simple test\" -O - http://localhost:${LISTEN_PORT}/v2/check > /dev/null 2>&1 || exit 1"] "30s" "10s" "10s" "0s" '\x00'}
EXPOSE map[8081/tcp:{}]
COPY --chmod=755 entrypoint.sh /entrypoint.sh # buildkit
ENTRYPOINT ["/sbin/tini" "-g" "-e" "143" "--" "/entrypoint.sh"]
LABEL org.opencontainers.image.title=meyay/languagetool
LABEL org.opencontainers.image.description=Minimal Docker Image for LanguageTool with fasttext support and automatic ngrams download
LABEL org.opencontainers.image.version=6.6-4
LABEL org.opencontainers.image.created=2025-07-18
LABEL org.opencontainers.image.licenses=LGPL-2.1
LABEL org.opencontainers.image.documentation=https://github.com/meyayl/docker-languagetool
LABEL org.opencontainers.image.source=https://github.com/meyayl/docker-languagetool
LABEL org.opencontainers.image.url=https://github.com/languagetool-org/languagetool

Labels

Key Value
org.opencontainers.image.created 2025-07-18
org.opencontainers.image.description Minimal Docker Image for LanguageTool with fasttext support and automatic ngrams download
org.opencontainers.image.documentation https://github.com/meyayl/docker-languagetool
org.opencontainers.image.licenses LGPL-2.1
org.opencontainers.image.source https://github.com/meyayl/docker-languagetool
org.opencontainers.image.title meyay/languagetool
org.opencontainers.image.url https://github.com/languagetool-org/languagetool
org.opencontainers.image.version 6.6-4
Details
Container
2025-08-11 09:14:51 +00:00
2
OCI / Docker
linux/arm64
LGPL-2.1
279 MiB
Versions (5) View all