PracticeDev/study_clang/zmq/docker_zmq_client/Dockerfile

16 lines
445 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_client.cpp /home/
COPY hw_client /home/hw_client_host
WORKDIR /home
RUN g++ hw_client.cpp -o hw_client -lzmq
CMD ["./hw_client"]