build failure when trying to create image of my angular app

Discussão em 'Angular' iniciado por Omar Abd El Kefi, Outubro 26, 2024.

  1. please i got error when run docker build -t app-front . this is my docker file,I followed a tutorial and copy dockerfile but the error happaens in npm run build ,there is some point i would ask which is when given me the path of angular errors (See "/tmp/ng-EAvZJS/angular-errors.log" for further details.)==>where can I find it please?


    FROM node:14.15.5 as node
    WORKDIR /app
    COPY . .
    RUN npm install
    RUN npm run build

    FROM nginx:alpine
    COPY --from=node /app/dist/angular-app /usr/share/nginx/html

    Continue reading...

Compartilhe esta Página