Dockerfile
903 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:8.9.1
FROM ccr.ccs.tencentyun.com/yoho-base/nodejs:8.9.1
MAINTAINER feng.chen <feng.chen@yoho.cn>
ENV NODE_ENV=production \
NODE_HOME=/home
COPY yoho-shop-manage.tar.gz /home
RUN cd /home && \
mkdir -p /home/yoho-shop-manage && \
mkdir -p /Data/log/yoho-shop-manage && \
tar -xzf yoho-shop-manage.tar.gz -C /home/yoho-shop-manage && \
rm -rf yoho-shop-manage.tar.gz
WORKDIR /home/yoho-shop-manage
#expose port
EXPOSE 6007
CMD ["node","/home/yoho-shop-manage/server/app.js"]