FROM node:18-alpine WORKDIR / # Copy package.json and package-lock.json COPY /WebServices/client-frontend/package*.json ./WebServices/client-frontend/ # Install dependencies RUN cd ./WebServices/client-frontend && npm install # Copy the rest of the application COPY /WebServices/client-frontend ./WebServices/client-frontend ## Build the Next.js app #RUN cd ./WebServices/client-frontend && npm run dev # Expose the port the app runs on EXPOSE 3000 # Command to run the app CMD ["sh", "-c", "cd /WebServices/client-frontend && npm run dev"]