Commit fb8ac637 authored by daidekun's avatar daidekun

fix python 打包

parent aa12af7b
FROM 192.168.4.36/baseimg/python FROM 192.168.4.36/baseimg/python
MAINTAINER kalvin "dekun.dai@quantgroup.cn"
ARG BUILD_NUMBER
ARG SYSTEM_NAME
USER root USER root
WORKDIR /home/quant_group WORKDIR /home/quant_group
RUN mkdir ${SYSTEM_NAME} RUN mkdir ${SYSTEM_NAME}
RUN mkdir logs RUN mkdir logs
RUN echo "${BUILD_NUMBER}" >> ./version.txt ARG BUILD_NUMBER
ARG SYSTEM_NAME
ARG BRANCH_NAME
ENV BUILD_NUMBER=$BUILD_NUMBER
ENV SYSTEM_NAME=$SYSTEM_NAME
ENV BRANCH_NAME=$BRANCH_NAME
RUN echo "BUILD_NUMBER: ${BUILD_NUMBER},SYSTEM_NAME: ${SYSTEM_NAME},BRANCH_NAME: ${BRANCH_NAME}" >> ./build_info
RUN pip install -i http://pypi.douban.com/simple --default-timeout 6000 tornado MySQL-python DBUtils synthesis executor futures --trusted-host pypi.douban.com RUN pip install -i http://pypi.douban.com/simple --default-timeout 6000 tornado MySQL-python DBUtils synthesis executor futures --trusted-host pypi.douban.com
#RUN apt-get remove python-pip -y && apt-get autoremove -y #RUN apt-get remove python-pip -y && apt-get autoremove -y
EXPOSE 80
COPY docker-entrypoint.sh . COPY docker-entrypoint.sh .
COPY dist.tgz ./${SYSTEM_NAME}/dist.tgz COPY dist.tgz ./project/dist.tgz
RUN chmod +x ./docker-entrypoint.sh RUN chmod +x ./docker-entrypoint.sh
CMD ["./docker-entrypoint.sh"] CMD ["./docker-entrypoint.sh"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment