Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
slm-fileview
Commits
bf83a084
Commit
bf83a084
authored
May 18, 2020
by
陈精华
Committed by
kl
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:构建镜像使用阿里云yum源,加速构建
parent
7601d497
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
26 deletions
+30
-26
Dockerfile
Dockerfile
+30
-26
No files found.
Dockerfile
View file @
bf83a084
...
@@ -2,32 +2,36 @@ FROM centos:centos7.6.1810
...
@@ -2,32 +2,36 @@ FROM centos:centos7.6.1810
MAINTAINER
chenjh "842761733@qq.com"
MAINTAINER
chenjh "842761733@qq.com"
ADD
jodconverter-web/target/kkFileView-*.tar.gz /opt/
ADD
jodconverter-web/target/kkFileView-*.tar.gz /opt/
COPY
fonts/* /usr/share/fonts/chienes/
COPY
fonts/* /usr/share/fonts/chienes/
RUN
yum
install
-y
kde-l10n-Chinese
&&
\
RUN
mv
/etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
&&
\
yum
install
-y
glibc-common
&&
\
curl
-o
/etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
&&
\
yum
install
-y
fontconfig
&&
\
sed
-i
-e
'/mirrors.cloud.aliyuncs.com/d'
-e
'/mirrors.aliyuncs.com/d'
/etc/yum.repos.d/CentOS-Base.repo
&&
\
yum
install
-y
mkfontscale
&&
\
yum makecache
&&
\
localedef
-c
-f
UTF-8
-i
zh_CN zh_CN.utf8
&&
\
yum
install
-y
kde-l10n-Chinese
&&
\
echo
"LANG=zh_CN.UTF-8"
>
/etc/locale.conf
&&
\
yum
install
-y
glibc-common
&&
\
source
/etc/locale.conf
&&
\
yum
install
-y
fontconfig
&&
\
export
LANG
=
zh_CN.UTF-8
&&
\
yum
install
-y
mkfontscale
&&
\
LANG
=
"zh_CN.UTF-8"
&&
\
localedef
-c
-f
UTF-8
-i
zh_CN zh_CN.utf8
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
\
echo
"LANG=zh_CN.UTF-8"
>
/etc/locale.conf
&&
\
yum
install
-y
java-1.8.0-openjdk.x86_64
&&
\
source
/etc/locale.conf
&&
\
yum
install
-y
wget
&&
\
export
LANG
=
zh_CN.UTF-8
&&
\
yum
install
-y
libXext.x86_64
&&
\
LANG
=
"zh_CN.UTF-8"
&&
\
yum groupinstall
-y
"X Window System"
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
\
cd
/tmp
&&
\
yum
install
-y
java-1.8.0-openjdk.x86_64
&&
\
wget https://kkfileview.keking.cn/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz
-cO
openoffice_rpm.tar.gz
&&
\
yum
install
-y
wget
&&
\
tar
zxf /tmp/openoffice_rpm.tar.gz
&&
\
yum
install
-y
libXext.x86_64
&&
\
cd
/tmp/zh-CN/RPMS
&&
\
yum groupinstall
-y
"X Window System"
&&
\
rpm
-Uvih
*
.rpm
&&
\
cd
/tmp
&&
\
rpm
-Uvih
desktop-integration/openoffice4.1.6-redhat-menus-4.1.6-9790.noarch.rpm
&&
\
wget https://kkfileview.keking.cn/Apache_OpenOffice_4.1.6_Linux_x86-64_install-rpm_zh-CN.tar.gz
-cO
openoffice_rpm.tar.gz
&&
\
rm
-f
/tmp/openoffice_rpm.tar.gz
&&
\
tar
zxf /tmp/openoffice_rpm.tar.gz
&&
\
rm
-rf
/tmp/zh-CN
&&
\
cd
/tmp/zh-CN/RPMS
&&
\
cd
/usr/share/fonts/chienes
&&
\
rpm
-Uvih
*
.rpm
&&
\
mkfontscale
&&
\
rpm
-Uvih
desktop-integration/openoffice4.1.6-redhat-menus-4.1.6-9790.noarch.rpm
&&
\
mkfontdir
&&
\
rm
-f
/tmp/openoffice_rpm.tar.gz
&&
\
fc-cache
-fv
rm
-rf
/tmp/zh-CN
&&
\
cd
/usr/share/fonts/chienes
&&
\
mkfontscale
&&
\
mkfontdir
&&
\
fc-cache
-fv
ENV
LANG zh_CN.UTF-8
ENV
LANG zh_CN.UTF-8
ENV
LC_ALL zh_CN.UTF-8
ENV
LC_ALL zh_CN.UTF-8
ENV
KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.2.0-SNAPSHOT/bin
ENV
KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.2.0-SNAPSHOT/bin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment