FROM node:18-alpine # Set the working directory in the container WORKDIR /app # Copy the package.json and lock files from the monorepo root COPY package*.json ./ # Install all dependencies for the entire monorepo RUN npm install # The command to start the dev server for the 'frontend' app # The 'host' flag is set to '0.0.0.0' to allow external connections (from the host machine) CMD ["npx", "nx", "run", "frontend:serve", "--host", "0.0.0.0"]