Skip to content
Snippets Groups Projects
Verified Commit 44e79ee7 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: docker image for languagetool with fasttext

parent edf05c3a
No related branches found
No related tags found
No related merge requests found
*.iml
/.idea/*
!/.idea/copyright/
.DS_Store
ARG VERSION=5.7
FROM openjdk:16-slim-buster AS builder
RUN apt-get update && \
apt-get install -y wget unzip git build-essential && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/facebookresearch/fastText.git && \
cd fastText && \
make
ARG VERSION
RUN wget https://www.languagetool.org/download/LanguageTool-$VERSION.zip && \
unzip LanguageTool-$VERSION.zip && \
rm LanguageTool-$VERSION.zip
FROM openjdk:16-slim-buster
ARG VERSION
COPY --from=builder /LanguageTool-$VERSION /languagetool
COPY --from=builder /fastText/fasttext /languagetool/fasttext
WORKDIR /languagetool
ENTRYPOINT [ "java", "-cp", "languagetool-server.jar", "org.languagetool.server.HTTPServer" ]
Makefile 0 → 100644
VERSION := 5.7
IMAGE := k8r.eu/justjanne/$(shell basename $(shell git remote get-url origin) .git)
TAGS := $(shell git describe --always --tags HEAD)
.PHONY: build
build:
docker build --pull -t $(IMAGE):$(TAGS) --build-arg VERSION=$(VERSION) .
docker tag $(IMAGE):$(TAGS) $(IMAGE):latest
@echo Successfully tagged $(IMAGE):$(TAGS) as latest
.PHONY: push
push: build
docker push $(IMAGE):$(TAGS)
docker push $(IMAGE):latest
@echo Successfully pushed $(IMAGE):$(TAGS) as latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment