cms/Dockerfile

21 lines
481 B
Text
Raw Permalink Normal View History

2025-07-24 13:14:46 -04:00
# Use the official Node.js image as a base
FROM node:18-slim
# Copy package.json and package-lock.json (if available)
COPY package*.json ./
# Install dependencies
RUN npm install && npm cache clean --force && rm -rf /root/.npm && rm -rf /tmp/*
# Copy the rest of your application code
COPY . .
# Set the NODE_ENV environment variable
ENV NODE_ENV=production
# Expose the port the app runs on (adjust as needed)
EXPOSE 1111
# Start the application
CMD ["npm", "run", "start"]