# 基于centos7
FROM openresty/openresty:1.13.6.2-centos

RUN yum -y install epel-release \
  && yum -y install python-pip

WORKDIR /home/quant_group

# 加入测试工具集
COPY qa-replace .

RUN pip install -r requirements.txt \
  && yum clean all

  #  拷贝nginx配置
COPY lua/*.lua /etc/nginx/lua/
ARG CONFIG=default.conf
COPY conf/nginx.conf /usr/local/openresty/nginx/conf/
COPY conf/${CONFIG} /etc/nginx/conf.d/

# 拷贝代码, code/xjd-ui/dist
# 先打包好代码镜像，然后从镜像中拷贝？？
COPY code .

COPY docker-entrypoint.sh ./
CMD ./docker-entrypoint.sh

