merge: resolve Dockerfile conflicts between stg and deploy/stg

- Keep optimized multi-stage build from stg
- Add gen:api step from deploy/stg
- Maintain security best practices (non-root user, minimal deps)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2026-04-06 14:33:30 +08:00
6 changed files with 82 additions and 27 deletions

View File

@@ -26,6 +26,9 @@ RUN cp .env.example .env || true
ENV PRISMA_CLI_BINARY_TARGETS=debian-openssl-3.0.x
RUN bunx prisma generate
# Generate API types
RUN bun run gen:api || echo "tidak ada gen api"
RUN bun run build
# ==============================
@@ -65,4 +68,4 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["bun", "start"]
CMD ["bun", "start"]