Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
e36c2504
Commit
e36c2504
authored
Mar 02, 2021
by
zhangmengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加dokcerfile文件
parent
81187185
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Dockerfile
Dockerfile
+8
-0
pm2-start.sh
pm2-start.sh
+4
-0
No files found.
Dockerfile
0 → 100644
View file @
e36c2504
FROM
node:lts-alpine
MAINTAINER
1516330897@qq.com
RUN
npm install
-g
cnpm
--registry
=
https://registry.npm.taobao.org
&&
cnpm install
-g
pm2@latest
&&
mkdir /app
WORKDIR
/app
COPY
. /app
EXPOSE
8133
RUN
chmod 755 ./pm2-start.sh
CMD
["./pm2-start.sh"]
pm2-start.sh
0 → 100644
View file @
e36c2504
#docker 容器启动脚本
#!/bin/bash
# 防止container启动后退出,使用命令 tail -f /dev/null
pm2 start ecosystem.config.js
&&
tail
-f
/dev/null
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