FROM node:22-alpine WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm install # Copy application code COPY . . # Make entrypoint executable RUN chmod +x /app/entrypoint.sh # Expose port EXPOSE 3000 # Use entrypoint for dependency sync ENTRYPOINT ["/app/entrypoint.sh"] # Run the development server CMD ["npm", "run", "dev"]