pm2 / Dockerfile
jimlv's picture
Update Dockerfile
d3a0339 verified
Raw History Blame Contribute Delete
499 Bytes
FROM keymetrics/pm2:18-alpine
# 安装 Nginx
RUN apk add --no-cache nginx
# 删除所有可能冲突的默认配置
RUN rm -f /etc/nginx/http.d/default.conf /etc/nginx/conf.d/*.conf
# 复制你写好的完整 nginx.conf 到主配置位置
COPY nginx.conf /etc/nginx/nginx.conf
# 设置工作目录
WORKDIR /app
# 复制项目文件
COPY package*.json ./
COPY ecosystem.config.js ./
COPY apps/ ./apps/
# 启动脚本
COPY start.sh /start.sh
RUN chmod +x /start.sh
EXPOSE 7860
CMD ["/start.sh"]