Files
ddns/Dockerfile
Joe Monk 0164290830
All checks were successful
Build and deploy / deploy (push) Successful in 41s
Init the ddns service, create app, aws and ip modules
2024-11-11 14:47:39 +00:00

23 lines
491 B
Docker

# Use the official Node.js image as the base image
FROM node:22-alpine
# 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 ./
# Install the application dependencies
RUN npm install
# 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 ["node", "dist/main"]