-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (22 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
36 lines (22 loc) · 1.12 KB
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
32
FROM amazoncorretto:26-jdk
ARG VERSION=2.33.0
# docker build --build-arg VERSION=2.33.0 -t jheinecke/conllueditor:2.33.0 .
# docker build --build-arg VERSION=2.33.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.33.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
#RUN apt update && apt install 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"