FROM node:18-alpine
# Create app directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application
COPY . .
# Expose the port if needed
# EXPOSE 3000
# Command to run the application
CMD ["node", "index.js"]