Look at the Nuxt documentation to learn more.
All dependency installation and running happens inside Docker, so no local Node/Yarn install is required on the host.
Build the image:
docker compose buildInstall dependencies (writes yarn.lock to the host, node_modules to a named Docker volume):
docker compose run --rm app yarn installStart the development server on http://localhost:3000:
docker compose upAny changes to files on the host are reflected live (bind-mounted). Stop with Ctrl+C, or docker compose down.
To add a new dependency:
docker compose run --rm app yarn add <package>Build the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewCheck out the deployment documentation for more information.