Blame view

Dockerfile 834 Bytes
陈峰 authored
1 2 3 4 5 6 7 8 9
############################################################
# 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
陈峰 authored
10
FROM ccr.ccs.tencentyun.com/yoho-base/node:10.4.1-alpine-fix
陈峰 authored
11 12 13 14 15 16 17

MAINTAINER  feng.chen  <feng.chen@yoho.cn>

ENV NODE_ENV=production \
	NODE_HOME=/home

RUN cd /home && \
jimi.ji authored
18 19 20 21 22
    mkdir -p /home/yoho-activity-platform && \
    mkdir -p /Data/log/yoho-activity-platform
    

COPY . /home/yoho-activity-platform
yyq authored
23
陈峰 authored
24 25 26 27
WORKDIR /home/yoho-activity-platform

#expose port
EXPOSE 6006
yyq authored
28 29

CMD ["node","/home/yoho-activity-platform/app.js"]