FROM node:24-alpine AS prodWORKDIR /app# Copy built output and package filesCOPY --from=build /app/.output ./.outputCOPY --from=build /app/package.json ./package.jsonCOPY --from=build /app/package-lock.json ./package-lock.json# Install only production dependenciesRUN npm ci --omit=dev# Expose Nuxt production portEXPOSE 3000# Start Nuxt 4 production serverCMD ["node", ".output/server/index.mjs"]
FROM node:24-alpine AS prodWORKDIR /app# Copy built output and package filesCOPY --from=build /app/.output ./.outputCOPY --from=build /app/package.json ./package.jsonCOPY --from=build /app/package-lock.json ./package-lock.json# Install only production dependenciesRUN npm ci --omit=dev# Expose Nuxt production portEXPOSE 3000# Start Nuxt 4 production serverCMD ["node", ".output/server/index.mjs"]
This doesnt work can anyone help me with how i should set up the enviroment variables in a production?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community