We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45cf4a6 commit 84baa24Copy full SHA for 84baa24
Dockerfile
@@ -0,0 +1,23 @@
1
+# build: `docker build -t udpipe/server .`
2
+# run: `docker run --rm -it -p 8080:8080 udpipe/server`
3
+#
4
+# see also https://github.com/samisalkosuo/udpipe-rest-server-docker
5
6
+FROM ubuntu:18.04
7
+
8
+ENV MODEL_FILE_NAME test.model
9
+ENV MODEL_NAME test
10
+ENV MODEL_DESC test description
11
12
+RUN apt-get -q update && \
13
+ apt-get -q install -y curl gcc g++ build-essential && \
14
+ g++ --version
15
16
+ADD src /udpipe/src
17
+ADD releases/test_data/${MODEL_FILE_NAME} /models/
18
+WORKDIR /udpipe/src/rest_server
19
20
+RUN cd /udpipe/src && BITS=64 MODE=release make -j4 server
21
22
+EXPOSE 8080
23
+CMD ./udpipe_server "8080" "${MODEL_NAME}" "${MODEL_NAME}" "/models/${MODEL_FILE_NAME}" "${MODEL_DESC}"
0 commit comments