FROM hub.cstcloud.cn/scalebox/agent:dev LABEL maintainer="Xiaoli Zhang" # 安装python3 RUN apt-get update \ && apt-get install -y python3 python3-pip \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* #安装第三方包 grpcio、protobuf、grpcio_tools RUN pip install grpcio RUN pip install protobuf RUN pip install grpcio_tools ENV CSST_ADML2_JOB_ID=2 ENV CSST_ADML2_NAME="admL2" ENV CSST_ADML1_JOB_ID=2 ENV CSST_ADML1_NAME="admL1" # grpc连接参数 ENV CSST_PIPELINE_GRPC_SERVER="122.96.144.152:39092" COPY *.sh /app/bin/ COPY *.py /app/bin/ COPY *.proto /app/bin/ #controld version 202208 RUN cd /app/bin/ \ && mkdir controld \ && python3 -m grpc_tools.protoc --python_out=. --grpc_python_out=. -I. control.proto -I=control RUN cd /app/bin/ \ && python3 setup.py sdist \ && python3 setup.py bdist_wheel \ && pip install twine \ # && twine upload dist/* \