Estoy usando Dockerfile básico que se parece a este:
WORKDIR / COPY . / RUN npm install RUN npm run buildMi proyecto es monorepo (hecho con turborepo) que consiste en paquetes API y Frontend. Cuando inicio la imagen usando docker compose, falla en el paso npm run build con el siguiente error:
#9 0.943 ERROR error hashing files. make sure that git has been initialized git hash-object exited with status: exec: "git": executable file not found in $PATH ------ failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c npm run build]: exit code: 1Construirlo localmente (Windows) funciona perfecto sin ningún error.
¿Algunas ideas?