i-tools/Dockerfile
2024-12-08 09:25:18 +08:00

17 lines
318 B
Docker

# 使用官方的 Node.js 镜像作为基础镜像
FROM node:22.12.0-alpine3.20
# 设置工作目录
WORKDIR /app
# 复制项目文件到工作目录
COPY .output /app/.output
# 暴露应用运行的端口(假设应用运行在 3000 端口)
EXPOSE 3000
# 启动应用
CMD ["node",".output/server/index.mjs"]