# Use the Node alpine official image # https://hub.docker.com/_/node FROM node:lts-alpine # Create and change to the app directory. WORKDIR /app # Copy the files to the container image COPY frontend/package*.json ./ # Install packages RUN npm ci # Copy local code to the container image. COPY frontend/ ./ # Build the app. RUN npm run build # Serve the app CMD ["npm", "run", "start"]