提交dockerfile
This commit is contained in:
30
dockerfile/ImageMagick/Dockerfile-jdk
Normal file
30
dockerfile/ImageMagick/Dockerfile-jdk
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM registry.openanolis.cn/openanolis/anolisos:8.6
|
||||
|
||||
#javajdk path
|
||||
ADD jdk-17_linux-x64_bin.tar.gz /usr/local/
|
||||
ENV JAVA_HOME /usr/local/jdk-17.0.7
|
||||
ENV PATH $PATH:/usr/local/jdk-17.0.7/bin
|
||||
|
||||
COPY dumb-init /usr/bin/
|
||||
|
||||
COPY ImageMagick-7.1.1-29/ /usr/local/ImageMagick/
|
||||
|
||||
RUN yum -y install curl openssh unzip ca-certificates tzdata wget bash glibc-langpack-zh \
|
||||
&& yum -y install fontconfig && fc-cache --force \
|
||||
&& yum update -y libnghttp2 \
|
||||
&& chmod +x /usr/bin/dumb-init \
|
||||
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone \
|
||||
&& echo "export LC_ALL=zh_CN.utf8" >> /etc/profile \
|
||||
&& echo "export LC_CTYPE=zh_CN.utf8" >> /etc/profile \
|
||||
&& yum -y install libjpeg* libpng* freetype* zlib gcc make gcc-c++ \
|
||||
&& cd /usr/local/ImageMagick && ./configure && make && make install \
|
||||
&& yum clean all \
|
||||
&& rm -rf /tmp/* /var/cache/yum/* \
|
||||
&& source /etc/profile
|
||||
|
||||
#setup language 解决中文乱码
|
||||
ENV LANG zh_CN.utf8
|
||||
ENV LC_ALL zh_CN.utf8
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
Reference in New Issue
Block a user