PracticeDev/study_clang/zmq/docker_zmq_server/Dockerfile

16 lines
410 B
Docker
Raw Normal View History

2022-12-20 17:31:11 +08:00
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"]