# Base image FROM node:16-alpine # Install build tools and Python RUN apk add --no-cache python3 make g++ && \ python3 -m ensurepip && \ pip3 install --no-cache --upgrade pip # Set working directory WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application code COPY . . # Expose the port the app runs on EXPOSE 3000 # Command to run the application CMD ["npm", "run", "dev"]