-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,244 additions
and
3,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
FROM oven/bun:1 | ||
FROM node:20-slim as base | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json bun.lockb ./ | ||
RUN bun install --frozen-lockfile | ||
COPY package.json pnpm-lock.yaml , | ||
|
||
FROM base as build | ||
|
||
RUN corepack enable | ||
|
||
RUN pnpm install --frozen-lockfile | ||
|
||
COPY . . | ||
RUN pnpm tsc | ||
|
||
FROM base as installer | ||
|
||
RUN pnpm install --frozen-lockfile | ||
|
||
FROM node:20-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json pnpm-lock.yaml ./ | ||
COPY --from=build /build/node_modules ./node_modules | ||
COPY --from=build /build/dist . | ||
|
||
CMD ["bun", "src/index.ts"] | ||
CMD ["node", "index.js"] |
Oops, something went wrong.