Dockerfile 1.01 KB
############################################################
# 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"

RUN set -x \
	&& yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel -y \
	&& yum install git-core

COPY id_rsa ~/.ssh/	
COPY id_rsa.pub ~/.ssh/
RUN set -x \
	&& chmod 400 ~/.ssh/id_rsa
	
	
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"]