i-tools/Dockerfile
2024-12-06 21:56:17 +08:00

17 lines
309 B
Docker

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