Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangxi
build-script
Commits
6a9e19c8
Commit
6a9e19c8
authored
Sep 17, 2022
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
486a1a03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Dockerfile
Dockerfile
+8
-4
No files found.
Dockerfile
View file @
6a9e19c8
FROM
registry.cn-hangzhou.aliyuncs.com/schbrain-base/jdk11:1.0.1 as builder
FROM
registry
-vpc
.cn-hangzhou.aliyuncs.com/schbrain-base/jdk11:1.0.1 as builder
WORKDIR
app
COPY
${JAR_FILE} app.jar
RUN
java
-Djarmode
=
layertools
-jar
app.jar extract
FROM
registry.cn-hangzhou.aliyuncs.com/schbrain-base/jdk11:1.0.1
FROM
registry
-vpc
.cn-hangzhou.aliyuncs.com/schbrain-base/jdk11:1.0.1
WORKDIR
app
COPY
--from=builder app/dependencies/ ./
COPY
--from=builder app/spring-boot-loader/ ./
COPY
--from=builder app/snapshot-dependencies/ ./
COPY
--from=builder app/application/ ./
RUN
mkdir
-p
/data/logs
/
${
APP_NAME
}
RUN
mkdir
-p
/data/logs
ENV
JVM_OPTS='-XX:+UseG1GC -XX:MaxRAMPercentage=80 -Xlog:gc*:/data/logs/gc.log:time,uptime -XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags ${JAVA_OPTS}'
ENV
JVM_OPTS='-XX:MaxRAMPercentage=90 -XX:+AlwaysPreTouch \
-XX:+UseG1GC -Xlog:gc*:/data/logs/gc.log:time,uptime \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump.hprof \
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags \
${JAVA_OPTS}'
ENTRYPOINT
exec java ${JVM_OPTS} org.springframework.boot.loader.JarLauncher --spring.profiles.active=${PROFILE}
\ No newline at end of file
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