{"repo":"kristiyan-velkov/nextjs-prod-dockerfile","free":true,"listed":false,"github":"https://github.com/kristiyan-velkov/nextjs-prod-dockerfile","clone":"git clone https://github.com/kristiyan-velkov/nextjs-prod-dockerfile.git","description":"This repository offers a guide and examples to optimize Docker for deploying Next.js applications in production. It covers best practices for creating efficient, secure, and lightweight Docker images with multi-stage builds, standalone mode, and selective dependency management to enable faster builds and seamless production deployments.","language":"TypeScript","stars":11,"topics":["code","docker","dockerfile","front-end","front-end-development","nextjs","programming","web"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"This repository contains the configuration for running a Next.js 15 application using Docker. It supports development, production, and static export modes with three different Dockerfiles and a docker-compose.yml file. More about me - Blogs on Medium - LinkedIn --- Security This Docker image has been thoroughly scanned for vulnerabilities to ensure a secure environment for your Next.js 15 application. The image has passed all vulnerability assessments using Docker's built-in security tools, including Docker Scout. Regular updates to the base image and dependencies are recommended to maintain a high level of security. - Article : Docker Scout in Action --- Prerequisites - Docker installed on your machine. - Make installed to use the Makefile commands. --- Usage Command Description ---------------------- ------------------------------------ make help Show available commands. make build Build the Docker image. make run Run the Docker container. make build-run Build and run the Docker container. make stop Stop the Docker container. make restart Restart the Docker container. make logs Show logs from the Docker container. make clean Remove Docker image and container. make clean-container Remove only the Docker container. make clean-image Remove only the Docker image. --- Environment Variables The following variables are defined in the Makefile and can be customized if needed: - IMAGE NAME : The name of the Docker image. Default is nextjs-app . - CONTAINER NAME : The name of the Doc","default_branch":null,"files":null,"tree":[],"storefront":"/r/kristiyan-velkov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kristiyan-velkov/nextjs-prod-dockerfile/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}