This commit is contained in:
2026-03-08 19:18:59 +07:00
commit 80dd32db1d
10 changed files with 453 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# 使用 Bun 官方镜像作为基础镜像
FROM oven/bun:1 AS base
# 设置工作目录
WORKDIR /app
# 复制 package.json 和相关文件(可选,项目无运行时依赖)
COPY package.json ./
# 复制源代码
COPY src ./src
COPY tsconfig.json ./
COPY files ./files
# 暴露端口
EXPOSE 9666
# 设置环境变量
ENV PORT=9666
ENV FILES_DIR=/app/files
# 启动服务
CMD ["bun", "run", "src/server.ts"]