HUB
Sign inSign up
nextjs logo

11notes/nextjs

By 11notes

•Updated almost 3 years ago

Run Nextjs based on Alpine Linux. Small, lightweight, secure and fast 🏔️

Image
0

1.6K

11notes/nextjs repository overview

⁠Alpine :: NextJS

size version pulls activity commit-last

Run NextJS based on Alpine Linux. Small, lightweight, secure and fast 🏔️

⁠Description

With this image you can quickly start a NextJS development environment to build your application. You can then use the buildcommand to build a stand-alone version of your app that can be hosted via Node.

⁠Volumes

  • /next/js/app - Directory of your NextJS app
  • /next/js/public - Directory of all certs
  • /next/js/build - Directory of your NextJS app production build (standalone)

⁠Run

Starting development

docker run --name nextjs \
  -p 3000:3000 \
  -v ../app:/next/js/app \
  -v ../public:/next/js/public \
  -d 11notes/nextjs:[tag]

Build project

docker run --name nextjs \
  -p 3000:3000 \
  -v ../app:/next/js/app \
  -v ../public:/next/js/public \
  -v ../build:/next/js/build \
  -d 11notes/nextjs:[tag] \
    build

⁠Defaults

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/nexthome directory of user docker
serverhttp://${IP}:3000Certbot endpoint

⁠Environment

ParameterValueDefault
TZTime Zone⁠
DEBUGShow debug information

⁠Parent image

⁠Built with (thanks to)

⁠Tips

  • Only use rootless container runtime (podman, rootless docker)
  • Don't bind to ports < 1024 (requires root), use NAT/reverse proxy (haproxy, traefik, nginx)
  • Use 11notes/nextjs-cluster⁠ to run the build output in a cluster on a single or multiple hosts

Tag summary

Content type

Image

Digest

sha256:136b4b9b7…

Size

997.6 MB

Last updated

almost 3 years ago

docker pull 11notes/nextjs:14.1.0