Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
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
QA
qg-dockerfiles
Commits
d102dfd2
Commit
d102dfd2
authored
Aug 06, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加smart.Dockerfile
parent
dedbfea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
smart.Dockerfile
tke/java/smart.Dockerfile
+26
-0
No files found.
tke/java/smart.Dockerfile
0 → 100644
View file @
d102dfd2
ARG
FROM_IMAGE
# todo: mvn 拆分依赖。减小代码层
# https://accenture.github.io/blog/2016/10/28/smart-java-docker-containers.html
# FROM ${FROM_IMAGE} as BUILD
FROM
ccr.ccs.tencentyun.com/qg-qa/jdk:1.8:chromium
WORKDIR
/home/quant_group
ARG
SYSTEM_NAME
ARG
BUILD_SCHEMA
ENV
SYSTEM_NAME=$SYSTEM_NAME \
BUILD_SCHEMA=$BUILD_SCHEMA
RUN
echo
-e
"
${
BUILD_SCHEMA
//@/\n
}
"
>>
./build_info
COPY
docker-entrypoint.sh .
COPY
readyCheck.sh .
# COPY --from=BUILD /code/* ./project/
COPY
./lib/* ./project/
COPY
./config/* ./project/
COPY
./application.properties ./project/
COPY
./*.jar ./project/
CMD
["sh", "docker-entrypoint.sh"]
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