# Use Node.js base image for build stage FROM node:slim AS build # Set working directory WORKDIR /app # Copy package.json and yarn.lock files COPY package.json ./ # Install dependencies using Yarn RUN npm i # Copy the rest of the application code COPY . . ENV SKIP_KEYSTATIC=true # Build the application RUN npm run build # Expose port 80 EXPOSE 4321 ENV HOST=0.0.0.0 ENV PORT=4321 # Start Nginx server CMD ["node", "dist/server/entry.mjs"]