Dockerfile 309 B

123456789101112131415161718192021
  1. FROM node:18
  2. WORKDIR /app
  3. # Install dependensi
  4. COPY package*.json ./
  5. RUN npm install
  6. # Salin semua kode
  7. COPY . .
  8. RUN npx prisma generate
  9. RUN npm run build
  10. # Tambah entrypoint
  11. COPY entrypoint.sh /entrypoint.sh
  12. RUN chmod +x /entrypoint.sh
  13. # Jalankan entrypoint saat container start
  14. CMD ["/entrypoint.sh"]