Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-CI
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
twb
gitlab-CI
Commits
f094c57c
Commit
f094c57c
authored
May 11, 2019
by
twb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启动命令改为先测试,测试通过后才能启动
parent
72bc262e
Pipeline
#94
passed with stages
in 2 minutes 16 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
.gitignore
+2
-0
Dockerfile
+5
-4
package.json
+1
-1
No files found.
.gitignore
View file @
f094c57c
node_modules
/.idea
\ No newline at end of file
Dockerfile
View file @
f094c57c
FROM
node
:8.11.2-alpine
FROM
node
WORKDIR
/data
COPY
./
*
./
COPY
./ ./
ENV
TZ=Asia/Shanghai
RUN
yarn
--registry
=
http://192.168.2.91:7001
RUN
ls
-la
\
&&
yarn
--registry
=
http://registry.npm.taobao.org
--no-lockfile
CMD
["node","start.js"]
CMD
nohup sh -c 'npm test && node start.js'
package.json
View file @
f094c57c
...
...
@@ -5,7 +5,7 @@
"main"
:
"start.js"
,
"scripts"
:
{
"start"
:
"node --use_strict start.js"
,
"test"
:
"mocha
./test/app.test.js
"
"test"
:
"mocha"
},
"keywords"
:
[
"koa"
,
...
...
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