diff --git a/Dockerfile b/Dockerfile index 7f50098..ae3d6d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,19 @@ -FROM node:20-alpine AS build +FROM oven/bun:1 AS build WORKDIR /app -COPY package.json . -RUN npm i +COPY package.json bun.lock ./ +RUN bun i --fronzen-lockfile COPY . . -RUN npm run build +RUN bun run build # Run -FROM node:20-alpine +FROM oven/bun:1 WORKDIR /app COPY --from=build /app/.output /app/.output EXPOSE 3000 -CMD [ "node", ".output/server/index.mjs" ] +CMD [ "bun", ".output/server/index.mjs" ] diff --git a/nuxt.config.ts b/nuxt.config.ts index 3553bad..6806bac 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -55,7 +55,7 @@ export default defineNuxtConfig({ urls: urls, }, nitro: { - // preset: "bun", + preset: "bun", storage: { globalStatistics: { driver: "mongodb",