Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_estate_server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
mp_estate_backstage
mp_estate_server
Commits
76c8e00f
Commit
76c8e00f
authored
Sep 03, 2020
by
HAYWAEL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tesat
parent
7dd6395f
Pipeline
#27851
failed with stage
in 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
Dockerfile
Dockerfile
+15
-11
No files found.
.gitlab-ci.yml
View file @
76c8e00f
...
...
@@ -17,6 +17,7 @@ build_docker_image:
-
tags
script
:
#- export IMAGE_TAG=${CI_COMMIT_TAG:-latest}
-
yarn && yarn ci
-
docker build -t $DOCKER_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_BUILD_REF_NAME .
-
docker push $DOCKER_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_BUILD_REF_NAME
tags
:
...
...
Dockerfile
View file @
76c8e00f
FROM
t-docker.51gjj.com/tools/node:12.18.2
#ENV LANG C.UTF-8
ENV
NODE_ENV production
ENV
PATH $PATH:/usr/local/node/bin/
FROM
t-docker.51gjj.com/tools/centos7-nodejs:10
ENV
LANG C.UTF-8
# ENV NODE_ENV production
RUN
mkdir
-p
/usr/src/app
#RUN yum -y install dotnet-sdk-3.1
WORKDIR
/usr/src/app
COPY
package.json /usr/src/app/
RUN
yarn config
set
registry
"https://registry.npm.taobao.org/"
RUN
npm
install
RUN
npm
install
egg-bin
RUN
npm run ci
COPY
. /usr/src/app
RUN
yarn config
set
registry https://registry.npm.taobao.org/
COPY
package.json yarn.lock /usr/src/app/
RUN
yarn
--prod
COPY
./dist /usr/src/app
EXPOSE
7001
CMD
[ "yarn", "docker" ]
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