Skip to content

feat: Add Docker support with multi-stage build and nginx#15

Merged
ianalloway merged 1 commit intomainfrom
devin/1771209006-add-docker
Feb 16, 2026
Merged

feat: Add Docker support with multi-stage build and nginx#15
ianalloway merged 1 commit intomainfrom
devin/1771209006-add-docker

Conversation

@ianalloway
Copy link
Owner

Summary

Adds Docker containerization for the AI Advantage Sports app with a multi-stage build process. The production image uses nginx to serve the built static assets, while a separate dev profile enables hot-reload development in containers.

Files added:

  • Dockerfile - Multi-stage build (Node 20 Alpine → nginx Alpine)
  • docker-compose.yml - Production service on port 3000, dev service on port 5173
  • nginx.conf - SPA routing, gzip compression, static asset caching
  • .dockerignore - Excludes node_modules, dist, env files, etc.

Review & Testing Checklist for Human

  • Build and run the Docker image locally: docker compose up --build
  • Verify SPA routing works (navigate to a route, refresh the page - should not 404)
  • Check if any environment variables are needed at runtime (currently only NODE_ENV is set)
  • Confirm port 3000 doesn't conflict with other local services

Recommended test plan:

docker compose up --build
# Visit http://localhost:3000
# Navigate around the app, refresh on different routes
# Check browser console for any errors

Notes

The dev service uses Docker profiles - run with docker compose --profile dev up for hot-reload development. The production build assumes Vite outputs to dist/ which is the default.

Link to Devin run: https://app.devin.ai/sessions/79b2218c13784145ac50150fb81d91c1
Requested by: Ian Alloway

Co-Authored-By: Ian Alloway <adapter_burners.1y@icloud.com>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Feb 16, 2026

Deploy Preview for aiadvantagea ready!

Name Link
🔨 Latest commit 040e51f
🔍 Latest deploy log https://app.netlify.com/projects/aiadvantagea/deploys/699281991fb29f0008e97b5e
😎 Deploy Preview https://deploy-preview-15--aiadvantagea.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ianalloway ianalloway merged commit 576234b into main Feb 16, 2026
5 checks passed
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.

1 participant