Skip to content

Commit

Permalink
修改dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
liiklin committed Jun 9, 2016
1 parent 1d6eff2 commit dce8b6d
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
FROM daocloud.io/library/node:6.2.1
#FROM daocloud.io/library/node:6.2.1
FROM index.alauda.cn/gugud/node:6.2.1
#创建目录
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
#安装依赖phantomjs
#RUN apt-get install phantomjs
#安装最新版本pm2模块
RUN cnpm install pm2@latest -g
#安装依赖
RUN cnpm install [email protected]
RUN npm install
#复制工程
COPY . /usr/src/app
RUN pwd
#
#换镜像
RUN rm -v /etc/apt/sources.list
RUN echo "deb http://mirrors.163.com/debian jessie main" > /etc/apt/sources.list
RUN apt-get update -y
RUN apt-get upgrade -y
#windows字体
RUN apt-get install unzip
#Tahoma 字体
RUN wget http://www.stchman.com/tools/MS_fonts/tahoma.zip
RUN unzip -d /usr/share/fonts/truetype/msttcorefonts ./tahoma.zip
RUN fc-cache -f -v
RUN rm -f ./tahoma.zip
#刷新字体缓存
RUN fc-cache -f -s -v
#
#设置环境
ENV PORT 9999
EXPOSE 9999
#线上环境
Expand Down

0 comments on commit dce8b6d

Please sign in to comment.