2 Star 36 Fork 3

yadong.zhang / gitee-stargazers

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Dockerfile 1.12 KB
Copy Edit Web IDE Raw Blame History
yadong.zhang authored 2021-03-26 12:01 . 修改docker容器编码
FROM node:12
WORKDIR /usr/src/app
COPY package*.json ./
# 安装 GraphicsMagick
COPY ./GraphicsMagick-1.3.36.tar.gz /usr/local/share/GraphicsMagick-1.3.36.tar.gz
RUN cd /usr/local/share/ && tar -zxvf GraphicsMagick-1.3.36.tar.gz && cd ./GraphicsMagick-1.3.36 && ./configure --prefix=/usr/local/GraphicsMagick --enable-shared --without-prel --enable-shared --disable-openmp && make && make install
# 安装 gm 模块
RUN npm install gm -g --registry=https://registry.npm.taobao.org
COPY ./phantomjs-1.9.8-linux-x86_64.tar.bz2 /usr/local/share/phantomjs-1.9.8-linux-x86_64.tar.bz2
RUN cd /usr/local/share/ && tar -xvf phantomjs-1.9.8-linux-x86_64.tar.bz2
ENV PHANTOMJS_HOME /usr/local/share/phantomjs-1.9.8-linux-x86_64
ENV PATH $PATH:$PHANTOMJS_HOME
ENV LANG C.UTF-8
# 安装cnpm 解决 install 慢的问题
#RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
#RUN cnpm install
RUN npm install --registry=https://registry.npm.taobao.org
COPY . .
EXPOSE 3000
RUN npm install pm2 -g --registry=https://registry.npm.taobao.org && pm2 install pm2-logrotate
CMD [ "pm2", "start", "./bin/www", "--no-daemon", "--name", "gs" ]

Comment ( 0 )

Sign in to post a comment

NodeJS
1
https://gitee.com/yadong.zhang/gitee-stargazers.git
git@gitee.com:yadong.zhang/gitee-stargazers.git
yadong.zhang
gitee-stargazers
gitee-stargazers
master

Search

113223 674803ea 1850385 170725 2838fb2a 1850385