Dockerfile 805 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/openresty
FROM ccr.ccs.tencentyun.com/yoho-base/openresty

MAINTAINER  jimi.ji  <jimi.ji@yoho.cn>

ENV NODE_ENV=production \
	NODE_HOME=/tmp

COPY yoho-api-doc.tar.gz /tmp

WORKDIR /tmp

RUN mkdir -p /tmp/yoho-api-doc  && \
	tar -xzvf yoho-api-doc.tar.gz -C /tmp/yoho-api-doc && \
	rm -rf yoho-api-doc.tar.gz.gz
	
#expose port
EXPOSE 80

ADD nginx.conf  /usr/local/openresty/nginx/conf/nginx.conf