diff --git a/Dockerfile b/Dockerfile index faf828b..9023548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,12 +67,11 @@ COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/tsconfig.json ./tsconfig.json COPY --from=builder /app/prisma ./prisma COPY --from=builder /app/src ./src -COPY entrypoint.sh ./entrypoint.sh # Env vars runtime dikelola oleh Portainer (stack env / container env). # Tidak perlu copy .env ke runner — image tetap bersih tanpa secrets. -RUN chown -R nextjs:nodejs /app && chmod +x entrypoint.sh +RUN chown -R nextjs:nodejs /app USER nextjs @@ -81,5 +80,4 @@ EXPOSE 3000 ENV PORT=3000 ENV HOSTNAME="0.0.0.0" -ENTRYPOINT ["./entrypoint.sh"] CMD ["bun", "run", "start"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index 9a9a2b3..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -set -e - -echo "⏳ Menjalankan migrasi database..." -./node_modules/.bin/prisma migrate deploy -echo "✅ Migrasi selesai." - -exec "$@"