Files
dvdash/Dockerfile
Joe Monk 32f53eb27e
All checks were successful
Build and deploy / deploy (push) Successful in 1m23s
alpine sucks sometimes
2025-09-05 00:39:53 +01:00

23 lines
510 B
Docker

# Use the official Node.js image as the base image
FROM node:24-trixie-slim
# 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 package-lock.json ./
# Install the application dependencies
RUN npm ci
# Copy the rest of the application files
COPY . .
# Build the NestJS application
RUN npm run build
# Expose the application port
EXPOSE 3000
# Command to run the application
CMD ["npm", "run", "start"]