Updated Dockerfile

This commit is contained in:
Kizuren 2025-07-04 20:39:08 +02:00 committed by GitHub
parent 222407c27a
commit b6e29323fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,15 +1,15 @@
FROM node:20-alpine AS build FROM oven/bun:1.1.13-alpine AS build
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package.json bun.lock ./
RUN npm ci RUN bun install
COPY . . COPY . .
RUN npm run build RUN bun run build
FROM node:20-alpine FROM oven/bun:1.1.13-alpine
WORKDIR /app WORKDIR /app
COPY --from=build /app/.output /app/.output COPY --from=build /app/.output /app/.output
ENV NODE_ENV=production ENV NODE_ENV=production
ENV PORT=3000 ENV PORT=3000
EXPOSE 3000 EXPOSE 3000
CMD ["node", ".output/server/index.mjs"] CMD ["bun", ".output/server/index.mjs"]