Dockerfile 907 Bytes
############################################################
# Dockerfile to build hystrix + turbin Installed Containers
# Based on centos 6.7
# How to build new image: docker build -t  yoho-hystrix-qcloud .
# the hystrix alert need to post events to influxdb.yohoops.org.
# nginx version: 1.12.0
############################################################


#base image : ccr.ccs.tencentyun.com/yoho-base/node
FROM ccr.ccs.tencentyun.com/yoho-base/node:10.4.1-alpine

MAINTAINER  xiaoxiao.hao  <xiaoxiao.hao@yoho.cn>

ENV NODE_ENV=production \
    NODE_HOME=/home

# COPY turbine configuration files
COPY yoho-yohobuy-wap.tar.gz /home

RUN cd /home && \
    mkdir -p /home/yoho-yohobuy-wap && \
    tar -xzvf yoho-yohobuy-wap.tar.gz -C /home/yoho-yohobuy-wap && \
    rm -rf yoho-yohobuy-wap.tar.gz

WORKDIR /home/yoho-yohobuy-wap

#expose port
EXPOSE 6001

CMD ["node","/home/yoho-yohobuy-wap/app.js"]