Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
solo-1
Commits
128144fc
Unverified
Commit
128144fc
authored
Mar 20, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐳
#12718 镜像时区
parent
622d1e21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Dockerfile
Dockerfile
+4
-2
No files found.
Dockerfile
View file @
128144fc
FROM
maven:3-jdk-8-alpine
LABEL
maintainer="Tomaer Ma<i@tomaer.com>"
WORKDIR
/opt/solo
ADD
. /tmp
RUN
cd
/tmp
&&
mvn
install
-DskipTests
-Pci
&&
mv
target/solo/
*
/opt/solo/
\
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/
${
TZ
}
/etc/localtime
&&
echo
${
TZ
}
>
/etc/timezone
\
&&
cd
/tmp
&&
mvn package
-DskipTests
-Pci
&&
mv
target/solo/
*
/opt/solo/
\
&&
cp
-f
/tmp/src/main/resources/docker/
*
/opt/solo/WEB-INF/classes/
\
&&
rm
-rf
/tmp/
*
&&
rm
-rf
~/.m2
EXPOSE
8080
WORKDIR
/opt/solo
ENTRYPOINT
[ "java", "-cp", "WEB-INF/lib/*:WEB-INF/classes", "org.b3log.solo.Starter" ]
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