上传文件至 /
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user