Dockerfile
821 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/nodejs
FROM ccr.ccs.tencentyun.com/yoho-base/nodejs
MAINTAINER jimi <jimi.ji@yoho.cn>
ENV NODE_ENV production
ENV NODE_HOME /home/static-ci
RUN mkdir -p "$NODE_HOME"
WORKDIR $NODE_HOME
COPY static-ci.tar.gz "$(NODE_HOME)"
RUN set -x \
&& mkdir -p /Data/logs/node/static-ci \
&& tar -xzvf static-ci.tar.gz -C $NODE_HOME \
&& rm -rf static-ci.tar.gz
#expose port
EXPOSE 6006
CMD ["node","starter.js"]