FROM node:18-alpine WORKDIR /app # Install necessary tools RUN apk add --no-cache \ curl \ wget \ postgresql-client \ bash # Install global packages RUN npm install -g @nestjs/cli # Copy scripts COPY scripts/start-dev.sh /app/scripts/ RUN chmod +x /app/scripts/start-dev.sh COPY package.json package-lock.json ./ RUN npm install # Copy prisma files COPY prisma ./prisma/ # Generate Prisma client RUN npx prisma generate EXPOSE 3000 9229 # Use the initialization script as the entry point CMD ["/app/scripts/start-dev.sh"]