revert: remove entrypoint migration

This commit is contained in:
2026-04-23 16:33:49 +08:00
parent a58441c4d6
commit f9b2eb0a80
2 changed files with 1 additions and 11 deletions

View File

@@ -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"]

View File

@@ -1,8 +0,0 @@
#!/bin/sh
set -e
echo "⏳ Menjalankan migrasi database..."
./node_modules/.bin/prisma migrate deploy
echo "✅ Migrasi selesai."
exec "$@"