This is a Next.js application that can be run using Docker for both development and production environments.
Before you begin, ensure you have the following installed on your machine:
- Docker
- Docker Compose
- Make
-
Clone the repository:
git clone https://github.com/your-username/my-next-app.git cd my-next-app
-
Start the development environment:
make dev
This command will:
- Build the Docker image for development
- Start the Next.js application with live-reloading enabled
-
Access the application:
- Open your browser and navigate to
http://localhost:3000
- Open your browser and navigate to
-
Build the Docker image:
make build
This command will build the Docker image for the production environment.
-
Start the production environment:
make prod
This command will:
- Start the Docker containers for the Next.js application
- Run the application in production mode
-
Access the application:
- Open your browser and navigate to
http://localhost:3000
- Open your browser and navigate to