Commit e07fa199 by 曹玉玺

添加依赖

parent d85b45dc
#!/bin/bash
FROM registry.cn-beijing.aliyuncs.com/hantang2/node105:v2 FROM registry.cn-beijing.aliyuncs.com/hantang2/node105:v2
MAINTAINER jy "jiangyong@gongsibao.com" 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/ ADD scratch-web /apps/scratch-web/
WORKDIR /apps/scratch-web/ WORKDIR /apps/scratch-web/
RUN cnpm install -S RUN cnpm install -S
CMD ["node","/apps/scratch-web/main.js"] CMD ["node","/apps/scratch-web/main.js"]
\ No newline at end of file
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