Files
dvdash/Dockerfile
Joe Monk 590fe84b40
All checks were successful
Build and deploy / deploy (push) Successful in 1m24s
That's why I had certs... Update regctl
2025-09-05 00:51:28 +01:00

29 lines
658 B
Docker

# Use the official Node.js image as the base image
FROM node:24-trixie-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# 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 . .
RUN chmod +x ./bin/regctl
# Build the NestJS application
RUN npm run build
# Expose the application port
EXPOSE 3000
# Command to run the application
CMD ["npm", "run", "start"]