Dockerfile
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
############################################################
# 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"]