添加 Dockerfile
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM oven/bun:1 AS base
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS build
|
||||
COPY . .
|
||||
RUN bun install --frozen-lockfile && bun run build
|
||||
|
||||
FROM base AS product
|
||||
COPY --from=build /app/build /app
|
||||
ENTRYPOINT [ "bun", "run", "index.js" ]
|
||||
|
||||
Reference in New Issue
Block a user