Add dockerfile and update gitignore

This commit is contained in:
2025-04-11 01:27:55 +02:00
parent 78c0a99b72
commit 6aa9c53969
2 changed files with 150 additions and 1 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
# Use an official Node.js runtime as a parent image
FROM node:18-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 any needed packages
RUN npm install --production
# Copy the rest of the application code to the container
COPY . .
# Expose the port the app runs on
EXPOSE 3000
# Start the application
CMD ["node", "server.js"]