Skip to content

Commit 84baa24

Browse files
author
jm
committed
basic Dockerfile that runs udpipe server with the provided test model - can be used for development/testing
1 parent 45cf4a6 commit 84baa24

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)