Files
aranroig.com/backend/Dockerfile
BinarySandia04 3e0cdf8cc4
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 12s
First test commit
2026-03-17 18:50:04 +01:00

24 lines
391 B
Docker

# Use official Node.js runtime
FROM node:20-alpine
# Create app directory
WORKDIR /usr/src/app
# Copy package files first (better caching)
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy application source
COPY . .
# Expose the app port
# EXPOSE 3000
# Environment variable
ENV NODE_ENV=production
# Start the application
CMD ["node", "src/index.js"]