Skip to content

Commit

Permalink
chore: switch from bun to node and from elysiajs to trpc
Browse files Browse the repository at this point in the history
  • Loading branch information
ClayenKitten committed Jul 17, 2024
1 parent ad520f3 commit 207713d
Show file tree
Hide file tree
Showing 15 changed files with 3,923 additions and 44 deletions.
18 changes: 8 additions & 10 deletions Dockerfile
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"]
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit 207713d

Please sign in to comment.