Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 committed Feb 28, 2024
1 parent c915591 commit 1f17c19
Show file tree
Hide file tree
Showing 4 changed files with 1,244 additions and 3,372 deletions.
26 changes: 22 additions & 4 deletions Dockerfile
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"]
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit 1f17c19

Please sign in to comment.