From 298dcb32c7d462b6a8a2a38d89b58c36fcd199f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Wed, 28 Feb 2024 23:45:32 +0900 Subject: [PATCH] Update Dockerfile --- Dockerfile | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 427fa23..0e7e7fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]