FROM node:18-alpine WORKDIR /app # Copy package files and install dependencies COPY package.json package-lock.json ./ RUN npm install # Copy the rest of the code COPY . . # Build Next.js RUN npm run build EXPOSE 3000 # Make sure Next.js binds to all interfaces ENV HOST=0.0.0.0 # Optionally, set the API URL here if you want ENV NEXT_PUBLIC_API_URL=https://cmcbackend.rootxwire.com CMD ["npm", "start"]