Files
analiticaNucleo/Dockerfile
josedario87 445157afc4
Some checks failed
deploy-analiticaNucleo / deploy (push) Failing after 2m39s
fix
2025-10-05 12:17:24 -06:00

35 lines
586 B
Docker

# Build stage
FROM node:22-alpine AS builder
WORKDIR /app
# Copy package files
COPY nuxt4-app/package*.json ./
# Install dependencies
RUN npm install --prefer-offline --no-audit
# Copy app source
COPY nuxt4-app/ ./
# Build the application
RUN npm run build
# Production stage
FROM node:22-alpine
WORKDIR /app
# Copy built application from builder
COPY --from=builder /app/.output /app/.output
# Expose port (internal, no published externally)
EXPOSE 3000
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
# Start the application
CMD ["node", ".output/server/index.mjs"]