Files
mathew/backend/Dockerfile
Aran Roig 7da78fcec4
Some checks failed
Build and Deploy Nuxt / build (push) Has been cancelled
kjdsjkJ
2026-10-01 21:36:30 +02:00

24 lines
391 B
Docker

# Use official Node.js runtime
FROM node:22-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"]