FROM node:20-alpine # Install OpenSSL for Prisma RUN apk add --no-cache openssl # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm install # Copy application files COPY . . # Copy and set permissions for entrypoint script COPY docker-entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/docker-entrypoint.sh # Expose port EXPOSE 3000 # Set entrypoint ENTRYPOINT ["docker-entrypoint.sh"] # Default command (can be overridden) CMD ["npm", "run", "dev"]