# Install the NextJS plugin
nx add @nx/next
# Create a new NextJS app
nx g @nx/next:app nextjs
# Install Nx Container plugin
nx add @nx-tools/nx-container
nx add @nx-tools/container-metadata
# Generate Dockerfile
nx g @nx-tools/nx-container:init --project=nextjs
# Make sure docker is running
# Invoke the container build target for an app
nx container nextjs
# Check the docker image
docker image ls
# Run the container image
docker run -p 3000:3000 nextjs:main
This repository was archived by the owner on Aug 16, 2024. It is now read-only.
generated from tranquyetdev/nx-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
tranquyetdev/monorepo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
All in one practices
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published