Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
languagetool-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
languagetool-docker
Commits
44e79ee7
Verified
Commit
44e79ee7
authored
3 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: docker image for languagetool with fasttext
parent
edf05c3a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
Dockerfile
+23
-0
23 additions, 0 deletions
Dockerfile
Makefile
+15
-0
15 additions, 0 deletions
Makefile
with
42 additions
and
0 deletions
.gitignore
0 → 100644
+
4
−
0
View file @
44e79ee7
*.iml
/.idea/*
!/.idea/copyright/
.DS_Store
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
23
−
0
View file @
44e79ee7
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" ]
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
15
−
0
View file @
44e79ee7
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment