Switch to node, give up on bun

This commit is contained in:
2025-09-04 23:07:40 +01:00
parent a4cce87950
commit 19e17ac7ae
5 changed files with 2984 additions and 615 deletions

View File

@@ -1,5 +1,5 @@
# Use the official Node.js image as the base image
FROM oven/bun:1.2.10
FROM node:24-alpine
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
@@ -9,20 +9,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package.json ./
COPY bun.lock ./
COPY package.json package-lock.json ./
# Install the application dependencies
RUN bun install --production
RUN npm ci
# Copy the rest of the application files
COPY . .
# Build the NestJS application
RUN bun run build
RUN npm run build
# Expose the application port
EXPOSE 3000
# Command to run the application
CMD ["bun", "run", "start"]
CMD ["npm", "run", "start"]