File size: 499 Bytes
cb6f780
c92c180
9ebca10
b71ef4c
c92c180
d3a0339
 
c92c180
d3a0339
 
9ebca10
d3a0339
9ebca10
d3a0339
 
9ebca10
 
 
 
d3a0339
b71ef4c
 
c92c180
d3a0339
b71ef4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]