If I made root the “user” in the react-app the image will build. But when I made “App” the user the build will fail.
See my Dockerfile below:
RUN addgroup app && adduser -S -G app app
COPY package*.json .
RUN npm install && npm audit fix --force
COPY . .
ENTRYPOINT [ “npm”, “start” ]
Anyone with suggestion?