Commit e36c2504 by zhangmengqi

添加dokcerfile文件

parent 81187185
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"]
#docker 容器启动脚本
#!/bin/bash
# 防止container启动后退出,使用命令 tail -f /dev/null
pm2 start ecosystem.config.js && tail -f /dev/null
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