diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ec58226 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use official Node.js LTS image +FROM node:20-alpine + +# Set working directory inside the container +WORKDIR /app + +# Copy package files first (for caching) +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy all project files +COPY . . + +# Expose port (change if needed) +EXPOSE 3000 + +# Default command (can be overridden) +CMD ["npm", "start"]