Switch to node, give up on bun
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user