Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Feb 28, 2024
1 parent 19617b1 commit 298dcb3
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
FROM node:20-slim AS build
FROM oven/bun:1 as base

WORKDIR /build

RUN npm install -g pnpm
WORKDIR /app

COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY package.json ./
RUN bun install

COPY . .
RUN pnpm tsc

FROM node:20-slim AS runtime

WORKDIR /app

COPY package.json pnpm-lock.yaml ./
COPY --from=build /build/node_modules ./node_modules
COPY --from=build /build/dist .

CMD ["node", "index.js"]
CMD ["bun", "run", "src/index.ts"]

0 comments on commit 298dcb3

Please sign in to comment.