Commit f1802948 by 曹玉玺

添加依赖

parent e07fa199
FROM registry.cn-beijing.aliyuncs.com/hantang2/node105:v2
MAINTAINER jy "jiangyong@gongsibao.com"
# 新增:安装 ImageMagick 和 GraphicsMagick(CentOS7 环境)
#USER root
RUN yum install -y epel-release \
&& yum install -y ImageMagick ImageMagick-devel \
&& yum install -y gcc gcc-c++ make libpng-devel libjpeg-devel libtiff-devel wget \
&& wget https://downloads.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.42/GraphicsMagick-1.3.42.tar.gz \
&& tar -zxvf GraphicsMagick-1.3.42.tar.gz \
&& cd GraphicsMagick-1.3.42 \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -rf GraphicsMagick-1.3.42 GraphicsMagick-1.3.42.tar.gz \
&& yum clean all
# 你原来的配置(完全保留)
ADD scratch-web /apps/scratch-web/
WORKDIR /apps/scratch-web/
# 刷新字体缓存,让 ImageMagick 识别项目中的思源宋体
RUN yum install -y fontconfig \
&& fc-cache -fv \
&& yum clean all \
RUN cnpm install -S
CMD ["node","/apps/scratch-web/main.js"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment