Add Dockerfile

This commit is contained in:
2026-06-09 15:37:20 +03:30
parent 9964b644a7
commit 2fc87c97e8

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Use the official Node.js image as the base image
FROM docker.arvancloud.ir/node:18
# 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"]