Dockerfile 265 B

1234567891011121314151617
  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. # Tambah entrypoint
  9. COPY entrypoint.sh /entrypoint.sh
  10. RUN chmod +x /entrypoint.sh
  11. # Jalankan entrypoint saat container start
  12. CMD ["/entrypoint.sh"]