-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
35 lines (21 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM openjdk:17-alpine
ARG VERSION=2.29.0
# docker build --build-arg VERSION=2.29.0 -t jheinecke/conllueditor:2.29.0 .
# docker build --build-arg VERSION=2.29.0 -t jheinecke/conllueditor:latest .
# docker run -t --rm --name conllueditor -p 5555:5555 --user 1000:1000 -v </absolute/path/to/datadir>:/data --env filename=tt.conllu jheinecke/conllueditor:latest
# docker push jheinecke/conllueditor:2.29.0
# docker push jheinecke/conllueditor:latest
# docker exec -it conllueditor /bin/sh
# stop and remove container docker rm --force conllueditor
# https://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html
RUN apk update && apk add --no-cache bash
WORKDIR /usr/src/ConlluEditor
COPY target/ConlluEditor-${VERSION}-jar-with-dependencies.jar ./ConlluEditor.jar
# be sure that JQ libraries etc are in gui/lib
COPY gui .
COPY dockerstart.sh .
#RUN ls -laR /
#USER $uid:$gid
EXPOSE 5555
WORKDIR /data
CMD /usr/src/ConlluEditor/dockerstart.sh "$filename" "$validator" "$uiconfig" "$UPOS" "$XPOS" "$deprels" "$features" "$language" "${include_unused}" "$shortcuts" "$saveAfter" "$compare"