FROM alpine:latest as centos_zmq_server MAINTAINER tlsong RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.8/main" > /etc/apk/repositories RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.8/community" >> /etc/apk/repositories RUN apk add zeromq-dev RUN apk add g++ COPY hw_client.cpp /home/ COPY hw_client /home/hw_client_host WORKDIR /home RUN g++ hw_client.cpp -o hw_client -lzmq CMD ["./hw_client"]