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
d57fefbf
Commit
d57fefbf
authored
Jan 17, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FROM scratch
parent
2c229c0f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
DockerfileCode
prod/java/DockerfileCode
+6
-0
Dockerfile
tke/java/Dockerfile
+5
-5
DockerfileCode
tke/java/DockerfileCode
+6
-0
No files found.
prod/java/Dockerfile
→
prod/java/Dockerfile
Code
View file @
d57fefbf
FROM
primetoninc/jdk:1.8
LABEL
maintainer=""
USER
root
WORKDIR
/home/quant_group
# 解决时区问题
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
RUN
mkdir
project/
;
mkdir
project/lib
;
mkdir
project/config
;
mkdir
logs/
# ARG BUILD_SCHEMA
# ENV BUILD_SCHEMA=$BUILD_SCHEMA
# ARG SYSTEM_NAME
# ENV SYSTEM_NAME=$SYSTEM_NAME
# RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info
FROM scratch
COPY ./*.jar /home/quant_group/project/app.jar
COPY ./lib/* /home/quant_group/project/lib/
...
...
tke/java/Dockerfile
View file @
d57fefbf
ARG
FROM_IMAGE
FROM
${FROM_IMAGE}
FROM
primetoninc/jdk:1.8
LABEL
maintainer=""
USER
root
WORKDIR
/home/quant_group
# 解决时区问题
ENV
TZ=Asia/Shanghai
...
...
@@ -18,10 +20,8 @@ ENV SYSTEM_NAME=$SYSTEM_NAME
RUN
echo
-e
"
${
BUILD_SCHEMA
//@/\n
}
"
>>
./build_info
COPY
docker-entrypoint.sh .
COPY
./*.jar /home/quant_group/project/app.jar
COPY
./lib/* /home/quant_group/project/lib/
COPY
./config/* /home/quant_group/project/config/
COPY
./application.properties /home/quant_group/project/application.properties
RUN
chmod
+x ./docker-entrypoint.sh
COPY
--from=0 /code/* /home/quant_group/
CMD
./docker-entrypoint.sh
\ No newline at end of file
tke/java/DockerfileCode
0 → 100644
View file @
d57fefbf
FROM scratch
COPY ./*.jar /code/app.jar
COPY ./lib/* /code/lib/
COPY ./config/* /code/config/
COPY ./application.properties /code/application.properties
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