|
@@ -32,9 +32,9 @@ COPY --from=builder /app/dist ./dist
|
|
|
COPY --from=builder /app/package*.json ./
|
|
|
COPY --from=builder /app/node_modules ./node_modules
|
|
|
COPY --from=builder /app/.env ./.env
|
|
|
-
|
|
|
+COPY --from=builder /app/ecosystem.config.js ./
|
|
|
# 暴露端口(根据您的应用需要修改)
|
|
|
EXPOSE 3000
|
|
|
|
|
|
# 启动应用
|
|
|
-CMD ["pm2-runtime", "dist/main.js"]
|
|
|
+CMD ["pm2-runtime", "start", "ecosystem.config.js"]
|