-
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.
chore: switch from
bun
to node
and from elysiajs
to trpc
- Loading branch information
1 parent
ad520f3
commit 207713d
Showing
15 changed files
with
3,923 additions
and
44 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,18 +1,16 @@ | ||
FROM oven/bun:1.1.20-alpine as build | ||
FROM node:21-alpine as builder | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json . | ||
COPY bun.lockb . | ||
RUN bun install --frozen-lockfile | ||
|
||
COPY package-lock.json . | ||
RUN npm ci | ||
COPY . . | ||
RUN bun run build | ||
RUN npm run build | ||
|
||
FROM oven/bun:1.1.20-alpine as serve | ||
FROM node:21-alpine as production | ||
|
||
WORKDIR /app | ||
COPY --from=build /app/build ./build | ||
COPY --from=build /app/node_modules ./node_modules | ||
COPY --from=builder /app/build ./build | ||
COPY --from=builder /app/node_modules ./node_modules | ||
COPY package.json . | ||
CMD ["bun", "./build"] | ||
CMD ["node", "./build"] |
Oops, something went wrong.