Files
dvdash/Dockerfile
Joe Monk 6a2b5abc39
All checks were successful
Build and deploy / deploy (push) Successful in 1m16s
Clear lock
2025-04-26 23:04:47 +01:00

24 lines
523 B
Docker

# Use the official Node.js image as the base image
FROM oven/bun:1.2.10
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package.json ./
COPY bun.lock ./
# Install the application dependencies
RUN bun install --production
# Copy the rest of the application files
COPY . .
# Build the NestJS application
RUN bun run build
# Expose the application port
EXPOSE 3000
# Command to run the application
CMD ["bun", "run", "start"]