Nuxt + Docker
Multi-stage Dockerfile: nginx for static sites, a Node server for apps that need one. This page shows exactly what pickstack adds to a Nuxt project for Docker: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework nuxt --modules docker --yesCustomize in the configurator
New files
node_modules dist build .output .nuxt .next .svelte-kit .astro .angular .git .env .env.* !.env.example *.log Dockerfile .dockerignore
# syntax=docker/dockerfile:1 FROM node:24-alpine AS build WORKDIR /app COPY package.json package-lock.json* ./ RUN npm install COPY . . RUN npm run build FROM node:24-alpine WORKDIR /app ENV NODE_ENV=production ENV HOST=0.0.0.0 ENV PORT=3000 COPY --from=build --chown=node:node /app/.output ./.output USER node EXPOSE 3000 CMD ["node", ".output/server/index.mjs"]
Project files
.dockerignore.gitignoreDockerfileREADME.mdapp/app.vueapp/assets/css/main.cssapp/components/CounterCard.vueapp/pages/about.vueapp/pages/index.vuenuxt.config.tspackage.jsonpublic/robots.txttsconfig.json