Skip to content

feat: add production-optimized Dockerfiles and docker-compose#148

Merged
Hexstar-labs merged 1 commit intoBrainTease:mainfrom
Christopherdominic:feature/issue-104-docker-production
Mar 29, 2026
Merged

feat: add production-optimized Dockerfiles and docker-compose#148
Hexstar-labs merged 1 commit intoBrainTease:mainfrom
Christopherdominic:feature/issue-104-docker-production

Conversation

@Christopherdominic
Copy link
Copy Markdown

  • Add multi-stage Dockerfile for backend with node:20-alpine
  • Add multi-stage Dockerfile for frontend with Next.js standalone
  • Configure non-root users for security
  • Add health checks for both services
  • Create docker-compose.prod.yml with resource limits
  • Add .dockerignore files to reduce image size
  • Enable Next.js standalone output mode

Closes #104

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Dependency update
  • CI/CD improvement

Related Issues

Closes #

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • E2E tests added/updated (if applicable)
  • Manual testing performed

Documentation

  • README updated (if applicable)
  • API documentation updated (if applicable)
  • Code comments added for complex logic
  • Migration guide added (if breaking changes)

Breaking Changes

  • No breaking changes
  • Breaking changes documented below:

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests passed locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Context

- Add multi-stage Dockerfile for backend with node:20-alpine
- Add multi-stage Dockerfile for frontend with Next.js standalone
- Configure non-root users for security
- Add health checks for both services
- Create docker-compose.prod.yml with resource limits
- Add .dockerignore files to reduce image size
- Enable Next.js standalone output mode

Closes BrainTease#104
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@Christopherdominic Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/CD: Docker — add production-optimised Dockerfiles

3 participants