Commit fba3f7ac authored by daidekun's avatar daidekun

fixbugs

parent a863fa7c
FROM 192.168.4.36/baseimg/python FROM 192.168.4.36/baseimg/ubuntu
MAINTAINER kalvin "dekun.dai@quantgroup.cn" MAINTAINER kalvin "dekun.dai@quantgroup.cn"
ARG SYSTEM_NAME
USER root USER root
WORKDIR /home/quant_group WORKDIR /home/quant_group
RUN mkdir ${SYSTEM_NAME} RUN mkdir ${SYSTEM_NAME}
...@@ -10,14 +8,17 @@ RUN mkdir ${SYSTEM_NAME} ...@@ -10,14 +8,17 @@ RUN mkdir ${SYSTEM_NAME}
ARG BUILD_NUMBER ARG BUILD_NUMBER
RUN echo "${BUILD_NUMBER}" >> ./version.txt RUN echo "${BUILD_NUMBER}" >> ./version.txt
ADD sources.list /etc/apt/sources.list
RUN apt-get update && apt-get install python-pip \
python-mysqldb \
mysql-libs \
mysql-devel \
python-dev -y
RUN pip install --default-timeout 6000 tornado MySQL-python DBUtils synthesis executor futures
#RUN apt-get remove python-pip -y && apt-get autoremove -y
EXPOSE 80 EXPOSE 80
#RUN apt-get install mysql-libs mysql-devel -y
RUN pip install tornado MySQL-python DBUtils synthesis executor futures
COPY docker-entrypoint.sh . COPY docker-entrypoint.sh .
COPY dist.tgz ./${SYSTEM_NAME}/dist.tgz COPY dist.tgz ./${SYSTEM_NAME}/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