Commit f094c57c by twb

启动命令改为先测试,测试通过后才能启动

parent 72bc262e
Pipeline #94 passed with stages
in 2 minutes 16 seconds
node_modules node_modules
/.idea
\ No newline at end of file
FROM node:8.11.2-alpine FROM node
WORKDIR /data WORKDIR /data
COPY ./* ./ COPY ./ ./
ENV TZ=Asia/Shanghai 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'
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"main": "start.js", "main": "start.js",
"scripts": { "scripts": {
"start": "node --use_strict start.js", "start": "node --use_strict start.js",
"test": "mocha ./test/app.test.js" "test": "mocha"
}, },
"keywords": [ "keywords": [
"koa", "koa",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment