feat: add AWS App Runner deployment support

- Update Dockerfile CMD to fix HOSTNAME binding for App Runner
- Add ECR push step to GitHub Actions for auto-deploy
- Add .env*.local to gitignore
This commit is contained in:
dayuan.jiang
2025-12-15 15:48:33 +09:00
parent 44840d27b3
commit c527ce1520
3 changed files with 24 additions and 2 deletions

View File

@@ -54,6 +54,6 @@ EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
# Start the application
CMD ["node", "server.js"]
# Start the application (HOSTNAME override needed for AWS App Runner)
CMD ["sh", "-c", "HOSTNAME=0.0.0.0 exec node server.js"]