16 lines
410 B
Docker
16 lines
410 B
Docker
|
FROM alpine:latest as centos_zmq_server
|
||
|
MAINTAINER tlsong <songtianlun@frytea.com>
|
||
|
|
||
|
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_server.cpp /home/
|
||
|
|
||
|
WORKDIR /home
|
||
|
|
||
|
RUN g++ hw_server.cpp -o hw_server -lzmq
|
||
|
|
||
|
CMD ["./hw_server"]
|