-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
FROM maven:3.6-jdk-8-alpine | ||
FROM fuhai/jpress-base:v1.1 | ||
LABEL maintainer="Michael Yang<[email protected]>" | ||
|
||
WORKDIR /opt/jpress | ||
ADD . /tmp | ||
|
||
ENV TZ=Asia/Shanghai | ||
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && \ | ||
echo ${TZ} > /etc/timezone | ||
|
||
# 验证码图片渲染需要ttf的支持 | ||
RUN apk add --update ttf-dejavu | ||
|
||
# 添加中文的支持 | ||
RUN yum install kde-l10n-Chinese -y | ||
RUN yum reinstall glibc-common -y | ||
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 | ||
ENV LC_ALL zh_CN.UTF-8 | ||
|
||
ENV LANG=zh_CN.UTF-8 \ | ||
LANGUAGE=zh_CN:zh \ | ||
LC_ALL=zh_CN.UTF-8 | ||
|
||
RUN cd /tmp && \ | ||
cp -f /tmp/docker/build/settings.xml /usr/share/maven/conf/settings.xml && \ | ||
mvn package -Pci && \ | ||
|
@@ -30,8 +13,6 @@ RUN cd /tmp && \ | |
cp -f /tmp/docker/build/jboot.properties /opt/jpress/config/jboot.properties && \ | ||
rm -rf /tmp && \ | ||
rm -rf ~/.m2 && \ | ||
rm -rf /opt/jpress/webapp/templates/NewJPress && \ | ||
rm -rf /opt/jpress/webapp/templates/BewTo && \ | ||
rm -rf /opt/jpress/jpress.bat && \ | ||
rm -rf /opt/jpress/config/undertow.txt && \ | ||
rm -rf /opt/jpress/config/install.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM maven:3.6-jdk-8-alpine | ||
LABEL maintainer="Michael Yang<[email protected]>" | ||
|
||
ENV TZ=Asia/Shanghai | ||
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && \ | ||
echo ${TZ} > /etc/timezone | ||
|
||
RUN apk add --update font-adobe-100dpi ttf-dejavu | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker build . -t fuhai/jpress-base:v1.1 -f ./Dockerfile.base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docker login | ||
docker push fuhai/jpress-base:v1.1 |