FROM 192.168.4.4/baseimg/openresty:201803291115

USER root
WORKDIR /home/quant_group

RUN mkdir -p /usr/local/openresty/nginx/conf/conf.d/;mkdir -p /usr/local/openresty/nginx/lua
ENV NODE_ENV=test

ARG BUILD_SCHEMA
ENV BUILD_SCHEMA=$BUILD_SCHEMA

RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info

COPY nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
COPY *.vh.conf /usr/local/openresty/nginx/conf/conf.d/
COPY *.lua /usr/local/openresty/nginx/lua/
COPY *tgz .
COPY docker-entrypoint.sh .

RUN chmod +x ./docker-entrypoint.sh
CMD ./docker-entrypoint.sh