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
56f807a6
Commit
56f807a6
authored
May 28, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改nodejs dockerfile
parent
d69a2554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
+10
-16
Dockerfile
tke/nodejs/Dockerfile
+10
-16
No files found.
tke/nodejs/Dockerfile
View file @
56f807a6
ARG
FROM_IMAGE
FROM
${FROM_IMAGE}
FROM
node:8.15.0-slim
RUN
rm
/bin/sh
&&
ln
-s
/bin/bash /bin/sh
FROM
ccr.ccs.tencentyun.com/qa-base/node10 AS builder
WORKDIR
/home/quant_group
WORKDIR
/home/quant_group
COPY
package.json package-lock.json ./
COPY
.npmrc /root
RUN
npm
install
ENV
NODE_ENV=test
FROM
ccr.ccs.tencentyun.com/qa-base/node10
WORKDIR
/home/quant_group
ARG
SYSTEM_NAME
COPY
--from=builder /home/quant_group/node_modules ./node_modules
ENV
SYSTEM_NAME=$SYSTEM_NAME
COPY
*.tgz docker-entrypoint.sh ./
ARG
BUILD_SCHEMA
ENV
BUILD_SCHEMA=$BUILD_SCHEMA
RUN
echo
-e
"
${
BUILD_SCHEMA
}
"
>>
./build_info
COPY
docker-entrypoint.sh .
COPY
--from=0 /code/* /home/quant_group/project/dist.tgz
CMD
["sh", "docker-entrypoint.sh"]
EXPOSE
80
\ No newline at end of file
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