mirror of
https://github.com/vastxie/99AI.git
synced 2025-12-26 01:36:03 +08:00
简化部署流程
使用docker-compose一键启动
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
# 编译阶段
|
||||
FROM node:18-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# 使用 pnpm 安装项目依赖
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm install
|
||||
|
||||
# 运行阶段
|
||||
FROM node:18-alpine
|
||||
ENV TZ="Asia/Shanghai"
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app .
|
||||
EXPOSE 9520
|
||||
|
||||
CMD ["node", "./dist/main.js"]
|
||||
Reference in New Issue
Block a user