-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.zeromq
32 lines (23 loc) · 1.05 KB
/
Dockerfile.zeromq
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 pasupulaphani/spacy-nlp:en
MAINTAINER Phaninder <[email protected]>
ENV BASE_DIR /usr/zeromq
ENV PORT 4242
RUN mkdir -p $BASE_DIR
VOLUME $BASE_DIR
WORKDIR $BASE_DIR
ADD . $BASE_DIR
########################################
# ZeroMQ
########################################
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git build-essential libtool autoconf automake pkg-config unzip libkrb5-dev
RUN cd /tmp && git clone git://github.com/jedisct1/libsodium.git && cd libsodium && git checkout e2a30a && ./autogen.sh && ./configure && make check && make install && ldconfig
RUN cd /tmp && git clone --depth 1 git://github.com/zeromq/libzmq.git && cd libzmq && ./autogen.sh && ./configure && make
# RUN cd /tmp/libzmq && make check
RUN cd /tmp/libzmq && make install && ldconfig
RUN rm /tmp/* -rf
####################
# Install pyzmq: Python bindings for ZeroMQ
RUN apt-get install -y python3-setuptools
RUN pip3 install -r $BASE_DIR/zeromq/requirements.txt
EXPOSE $PORT
ENTRYPOINT ["python3", "/usr/zeromq/zeromq/server.py"]