上传文件至 /

This commit is contained in:
2025-01-10 14:28:03 +08:00
commit 9b1f97b5f1
5 changed files with 237 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM docker.m.ixdev.cn/oven/bun:1.1.43-slim as builder
WORKDIR /app
COPY package*.json ./
RUN bun install --registry https://registry.npmmirror.com
COPY . .
FROM docker.m.ixdev.cn/library/node:22-slim
WORKDIR /app
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/koishi.yml ./
COPY --from=builder /app/start.sh ./
COPY --from=builder /app/node_modules ./node_modules
CMD ["/bin/sh", "/app/start.sh"]