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
c8a6d3ee
Commit
c8a6d3ee
authored
May 21, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
使用腾讯基础镜像
parent
c6e6375b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
Dockerfile
tke/java/Dockerfile
+9
-10
No files found.
tke/java/Dockerfile
View file @
c8a6d3ee
ARG
FROM_IMAGE
FROM
${FROM_IMAGE}
# todo: mvn 拆分依赖。减小代码层
# https://accenture.github.io/blog/2016/10/28/smart-java-docker-containers.html
FROM
${FROM_IMAGE} as BUILD
FROM
primetoninc/jdk:1.8
LABEL
maintainer=""
FROM
ccr.ccs.tencentyun.com/qg-qa/jdk:1.8
WORKDIR
/home/quant_group
# 解决时区问题
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
ARG
SYSTEM_NAME
ENV
SYSTEM_NAME=$SYSTEM_NAME
ARG
BUILD_SCHEMA
ENV
BUILD_SCHEMA=$BUILD_SCHEMA
ENV
SYSTEM_NAME=$SYSTEM_NAME \
BUILD_SCHEMA=$BUILD_SCHEMA
RUN
echo
-e
"
${
BUILD_SCHEMA
//@/\n
}
"
>>
./build_info
COPY
docker-entrypoint.sh .
COPY
--from=
0
/code/* /home/quant_group/project/
COPY
--from=
BUILD
/code/* /home/quant_group/project/
COPY
readyCheck.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