Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.
/ nextjs-docker Public archive

Next.js template/boilerplate/starting-point for Alpine Linux Container deployments with security in mind!

License

Notifications You must be signed in to change notification settings

selfup/nextjs-docker

Repository files navigation

NextJS and Docker

  • node: v16.17.0
  • npm: 8.19.2
  • rootfs: alpine 3.15
  • docker: 20.10.12, build e91ed57

A note about alpine and node which explains:

RUN apk add --no-cache libc6-compat

Enjoy!

Local

Dev

npm i && npm run dev

Docker Compose

docker-compose up --build

This will build and run your container locally 🚀

Traditional Docker Route

Build your containers for deploys:

MacOS/Linux

./scripts/prod.sh

Windows

./scripts/prod.bat

Now that your container is built, you can test it locally:

docker run -p 3000:3000 nextjs-docker

Now deploy 🚀

About

Next.js template/boilerplate/starting-point for Alpine Linux Container deployments with security in mind!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy