|
|
############################################################
|
|
|
# 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 feng.chen <feng.chen@yoho.cn>
|
|
|
|
|
|
ENV NODE_ENV=production \
|
|
|
NODE_HOME=/home
|
|
|
|
|
|
COPY yoho-activity-platform.tar.gz /home
|
|
|
|
|
|
RUN cd /home && \
|
|
|
mkdir -p /home/yoho-activity-platform && \
|
|
|
mkdir -p /Data/log/yoho-activity-platform && \
|
|
|
tar -xzvf yoho-activity-platform.tar.gz -C /home/yoho-activity-platform && \
|
|
|
rm -rf yoho-activity-platform.tar.gz
|
|
|
|
|
|
WORKDIR /home/yoho-activity-platform
|
|
|
|
|
|
#expose port
|
|
|
EXPOSE 6006
|
|
|
|
|
|
CMD ["node","/home/yoho-activity-platform/app.js"] |
|
|
\ No newline at end of file |
...
|
...
|
|