ADD: Docker and ENV

This commit is contained in:
2024-12-22 16:53:23 +03:30
parent aeb38982ca
commit bbc04df5b3
3 changed files with 61 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# Use the official Node.js image as a base
FROM node:18
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json to the container
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the application port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]