Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self hosted Production fixes #157

Merged
merged 8 commits into from
Oct 27, 2024
Merged

Self hosted Production fixes #157

merged 8 commits into from
Oct 27, 2024

Conversation

piyush97
Copy link
Owner

@piyush97 piyush97 commented Oct 27, 2024

This pull request includes significant changes to the Docker configuration and the Next.js build setup. The most important changes involve restructuring the Dockerfile, adding a docker-compose.yml file, and modifying the Next.js configuration to support standalone output.

Docker Configuration Updates:

  • Dockerfile: The Dockerfile has been restructured to follow a multi-stage build approach, which includes separate stages for dependencies, building, and running the application. This improves efficiency and reduces the final image size.

  • docker-compose.yml: A new docker-compose.yml file has been added to facilitate easier container management and deployment. It defines the service, build context, ports, environment variables, and restart policy.

Next.js Configuration:

  • next.config.mjs: The Next.js configuration has been updated to enable standalone output, which is necessary for the new Docker setup. This change allows the application to be built and run more efficiently in a containerized environment.

- Create docker-compose.yml file for orchestrating the Next.js application
- Define service for the Next.js app with build context and Dockerfile
- Set up port mapping, environment variables, and restart policy
- Prepare for easy deployment and scaling in production environment
Copy link

vercel bot commented Oct 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
piyush-mehta-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 27, 2024 3:29am

- Switch from Bun to npm for package management
- Update Dockerfile to use npm instead of Bun
- Remove bun.lockb and add package-lock.json
- Prepare for changes in next.config.mjs (not yet committed)
@piyush97 piyush97 marked this pull request as ready for review October 27, 2024 03:59
@piyush97 piyush97 merged commit a2b9909 into v3/revamp Oct 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant