angular / angular-cli

CLI tool for Angular
https://cli.angular.io
MIT License
26.74k stars 11.98k forks source link

Docker Image build failed on Angular 10 #18581

Closed lamqson closed 3 years ago

lamqson commented 4 years ago

🐞 Bug report

Command (mark with an x)

docker build -t myapp

Is this a regression?

I have not worked with other version yet. But I think it should have been working

Description

Docker build keeps failing

πŸ”¬ Minimal Reproduction

I have created a repo to re-produce it: https://github.com/lamqson/app-with-docker


1. install docker
2. run command: "docker build -t appwithdocker ."

πŸ”₯ Exception or Error



Generating ES5 bundles for differential loading...
An unhandled exception occurred: Call retries were exceeded
See "/tmp/ng-mfxP6m/angular-errors.log" for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! myapp@1.0.0 build:dev: `cp ${ENV:-'configs/env/.env.dev'} .env && ts-node set-env.ts && ng build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the myapp@1.0.0 build:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-19T16_44_53_152Z-debug.log
The command '/bin/sh -c npm run build:dev' returned a non-zero code: 1

🌍 Your Environment




     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 10.0.6
Node: 14.5.0
OS: darwin x64

Angular: 10.0.11
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.6
@angular-devkit/build-angular     0.1000.6
@angular-devkit/build-optimizer   0.1000.6
@angular-devkit/build-webpack     0.1000.6
@angular-devkit/core              10.0.5
@angular-devkit/schematics        10.0.5
@angular/cdk                      10.1.3
@angular/cli                      10.0.6
@angular/flex-layout              10.0.0-beta.32
@angular/google-maps              10.1.3
@angular/material                 10.1.3
@angular/youtube-player           10.1.3
@ngtools/webpack                  10.0.6
@schematics/angular               10.0.6
@schematics/update                0.1000.6
rxjs                              6.6.2
typescript                        3.9.7
webpack                           4.43.0

Dockerfile


FROM node:14.8.0
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install -g @angular/cli
RUN npm install
COPY . ./
RUN npm run build:dev
EXPOSE 8080
CMD [ "node", "server.js" ]

package.json


{
  "name": "",
  "version": "1.0.0",
  "scripts": {
    "config": "ts-node set-env.ts",
    "android": "tns run android --no-hmr",
    "ios": "tns run ios --no-hmr",
    "mobile": "tns run",
    "preview": "tns preview",
    "ngcc": "ngcc --properties es2015 module main --first-only",
    "postinstall": "npm run ngcc",
    "ng": "ng",
    "start": "cp ${ENV:-'configs/env/.env.dev'} .env && ts-node set-env.ts && node --max_old_space_size=4096 ./node_modules/.bin/ng serve -o",
    "build:dev": "cp ${ENV:-'configs/env/.env.dev'} .env && ts-node set-env.ts && ng build",
    "build:stg": "cp ${ENV:-'configs/env/.env.stg'} .env && ts-node set-env.ts && node --max_old_space_size=4096 ./node_modules/.bin/ng build",
    "build:prod": "cp ${ENV:-'configs/env/.env.prod'} .env && ts-node set-env.ts && node --max_old_space_size=4096 ./node_modules/.bin/ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "generate": "graphql-codegen"
  },
  "private": true,
  "dependencies": {
    "@agm/core": "3.0.0-beta.0",
    "@angular-material-extensions/google-maps-autocomplete": "4.1.1",
    "@angular/animations": "10.0.11",
    "@angular/cdk": "10.1.3",
    "@angular/common": "10.0.11",
    "@angular/compiler": "10.0.11",
    "@angular/core": "10.0.11",
    "@angular/flex-layout": "10.0.0-beta.32",
    "@angular/forms": "10.0.11",
    "@angular/google-maps": "10.1.3",
    "@angular/material": "10.1.3",
    "@angular/platform-browser": "10.0.11",
    "@angular/platform-browser-dynamic": "10.0.11",
    "@angular/router": "10.0.11",
    "@angular/youtube-player": "10.1.3",
    "@apollo/client": "3.1.3",
    "@auth0/auth0-spa-js": "1.11.0",
    "@mdi/font": "5.5.55",
    "@nativescript/angular": "10.0.2",
    "@nativescript/core": "rc",
    "@nativescript/theme": "2.3.3",
    "@swimlane/ngx-charts": "14.0.0",
    "@syncfusion/ej2-angular-richtexteditor": "18.2.54",
    "@zxing/ngx-scanner": "3.0.0",
    "angular-in-memory-web-api": "0.11.0",
    "angular2-uuid": "1.1.1",
    "apollo-angular": "2.0.3",
    "apollo-angular-link-http": "1.11.0",
    "apollo-cache-inmemory": "1.6.6",
    "apollo-client": "2.6.10",
    "apollo-link-error": "1.1.13",
    "colors": "1.4.0",
    "dotenv": "8.2.0",
    "email-validator": "2.0.4",
    "graphql": "15.3.0",
    "moment": "2.27.0",
    "moment-timezone": "0.5.31",
    "nativescript-iqkeyboardmanager": "1.5.1",
    "nativescript-material-core": "3.2.19",
    "nativescript-social-share": "1.6.0",
    "nativescript-unit-test-runner": "0.7.0",
    "nativescript-accelerometer": "3.0.0",
    "nativescript-background-http": "4.2.1",
    "nativescript-camera": "4.5.0",
    "nativescript-image": "3.0.12",
    "nativescript-geolocation": "5.1.0",
    "nativescript-imagepicker": "7.1.0",
    "nativescript-intl": "4.0.1",
    "nativescript-theme-core": "2.0.24",
    "nativescript-ui-autocomplete": "7.0.1",
    "nativescript-ui-calendar": "7.0.1",
    "nativescript-ui-chart": "8.0.1",
    "nativescript-ui-dataform": "7.0.1",
    "nativescript-ui-gauge": "7.0.1",
    "nativescript-ui-listview": "9.0.1",
    "nativescript-ui-sidedrawer": "9.0.2",
    "ngx-input-file": "8.0.1",
    "ngx-pagination": "5.0.0",
    "ngx-perfect-scrollbar": "10.0.1",
    "ngx-spinner": "10.0.1",
    "ngx-swiper-wrapper": "9.0.1",
    "reflect-metadata": "0.1.13",
    "rxjs": "6.6.2",
    "tns-core-modules": "rc",
    "tslib": "2.0.1",
    "zone.js": "0.10.3"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "0.1000.6",
    "@angular/cli": "10.0.6",
    "@angular/compiler-cli": "10.0.11",
    "@angular/language-service": "10.0.11",
    "@graphql-codegen/cli": "1.17.8",
    "@graphql-codegen/typescript": "1.17.8",
    "@graphql-codegen/typescript-apollo-angular": "2.0.1",
    "@graphql-codegen/typescript-operations": "1.17.8",
    "@nativescript/schematics": "10.0.2",
    "@nativescript/tslint-rules": "0.0.5",
    "@nativescript/webpack": "2.1.3",
    "@types/jasmine": "3.5.12",
    "@types/jasminewd2": "2.0.8",
    "@types/lodash": "4.14.159",
    "@types/moment": "2.13.0",
    "@types/moment-timezone": "0.5.30",
    "@types/node": "14.6.0",
    "@typescript-eslint/eslint-plugin": "3.9.1",
    "@typescript-eslint/parser": "3.9.1",
    "codelyzer": "6.0.0",
    "eslint": "7.7.0",
    "jasmine-core": "3.6.0",
    "jasmine-spec-reporter": "5.0.2",
    "karma": "5.1.1",
    "karma-chrome-launcher": "3.1.0",
    "karma-coverage-istanbul-reporter": "3.0.3",
    "karma-jasmine": "4.0.1",
    "karma-jasmine-html-reporter": "1.5.4",
    "protractor": "7.0.0",
    "ts-node": "8.10.2",
    "tslint": "6.1.3",
    "typescript": "3.9.7"
  },
  "nativescript": {
    "id": "org.nativescript.ngsample",
    "tns-ios": {
      "version": "6.5.2"
    },
    "tns-android": {
      "version": "6.5.3"
    }
  }
}

alan-agius4 commented 4 years ago

Hi @lamqson,

Can you try to increase the memory limit for build:dev? I noticed that while you are increasing the limit for the other build configuration you are not doing so for the build:dev.

By default Node.js has a memory limit of ~2Gb and for large projects this may need to be increased.

lamqson commented 4 years ago

I have done that and it does not help.

plohoj commented 3 years ago

Hi @lamqson, I ran a Docker build for your repository and did not receive an error

Logs ```bash Sending build context to Docker daemon 24.22MB Step 1/9 : FROM node:14.8.0 14.8.0: Pulling from library/node 419e7ae5bb1e: Pull complete 848839e0cd3b: Pull complete de30e8b35015: Pull complete 258fdea6ea48: Pull complete ddb75eb7f1e9: Pull complete 7ec8a0667334: Pull complete c6d8dab5779d: Pull complete d3ae9be01b42: Pull complete 38ff96b6f833: Pull complete Digest: sha256:8b6401f8d15c900736a54a870994277b3de19ebd28cc483c497bf00d608e2a90 Status: Downloaded newer image for node:14.8.0 ---> 784e696f5060 Step 2/9 : WORKDIR /usr/src/app ---> Running in ac1bf2c67a3a Removing intermediate container ac1bf2c67a3a ---> ec92388125d0 Step 3/9 : COPY package*.json ./ ---> 910e90180565 Step 4/9 : RUN npm install -g @angular/cli ---> Running in f73d5a7d5332 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported /usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng > @angular/cli@10.1.7 postinstall /usr/local/lib/node_modules/@angular/cli > node ./bin/postinstall/script.js + @angular/cli@10.1.7 added 277 packages from 206 contributors in 17.963s Removing intermediate container f73d5a7d5332 ---> 826b86f21e56 Step 5/9 : RUN npm install ---> Running in d7c5f348f5c8 > websocket@1.0.31 install /usr/src/app/node_modules/websocket > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Entering directory '/usr/src/app/node_modules/websocket/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node COPY Release/validation.node make: Leaving directory '/usr/src/app/node_modules/websocket/build' > core-js@3.6.4 postinstall /usr/src/app/node_modules/@angular-devkit/build-angular/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > core-js@3.6.5 postinstall /usr/src/app/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > ejs@2.7.4 postinstall /usr/src/app/node_modules/ejs > node ./postinstall.js Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/) > core-js@2.6.11 postinstall /usr/src/app/node_modules/fbjs/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > browser-tabs-lock@1.2.11 postinstall /usr/src/app/node_modules/browser-tabs-lock > node scripts/postinstall.js Thank you for using browser-tabs-lock ( https://github.com/supertokens/browser-tabs-lock ). This library was created as a part of a larger project, SuperTokens( https://supertokens.io ) - the best session management solution. You can also check out our other projects on https://github.com/supertokens > swiper@5.4.5 postinstall /usr/src/app/node_modules/swiper > echo "Love Swiper? Support Vladimir's work by donating or pledging on patreon: > https://patreon.com/vladimirkharlampidi " Love Swiper? Support Vladimir's work by donating or pledging on patreon: > https://patreon.com/vladimirkharlampidi > @angular/cli@10.0.6 postinstall /usr/src/app/node_modules/@angular/cli > node ./bin/postinstall/script.js > @nativescript/core@7.0.0-rc.56 postinstall /usr/src/app/node_modules/@nativescript/core > node cli-hooks/postinstall.js > @nativescript/webpack@2.1.3 postinstall /usr/src/app/node_modules/@nativescript/webpack > node postinstall.js Creating file: /usr/src/app/webpack.config.js Dev dependency: @angular/compiler-cli already added. Leaving version: 10.0.11 Some dependencies have already been added. If you want to force update them, please run "node_modules/.bin/update-ns-webpack". > nativescript-unit-test-runner@0.7.0 postinstall /usr/src/app/node_modules/nativescript-unit-test-runner > node postinstall.js npm WARN lifecycle appwithdocker@1.0.0~postinstall: cannot run in wd appwithdocker@1.0.0 npm run ngcc (wd=/usr/src/app) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 2040 packages from 1464 contributors and audited 2052 packages in 53.933s 87 packages are looking for funding run `npm fund` for details found 16 vulnerabilities (15 low, 1 high) run `npm audit fix` to fix them, or `npm audit` for details Removing intermediate container d7c5f348f5c8 ---> db3de6cbe7f0 Step 6/9 : COPY . ./ ---> c075c5b99158 Step 7/9 : RUN npm run build:dev ---> Running in 8fcac0d4b3a1 > appwithdocker@1.0.0 build:dev /usr/src/app > ng build Compiling @angular/core : es2015 as esm2015 Compiling @angular/cdk/keycodes : es2015 as esm2015 Compiling @angular/animations : es2015 as esm2015 Compiling @angular/compiler/testing : es2015 as esm2015 Compiling @angular/cdk/observers : es2015 as esm2015 Compiling @angular/animations/browser : es2015 as esm2015 Compiling @angular/cdk/collections : es2015 as esm2015 Compiling @angular/core/testing : es2015 as esm2015 Compiling @angular/common : es2015 as esm2015 Compiling apollo-angular : es2015 as esm2015 Compiling @angular/cdk/accordion : es2015 as esm2015 Compiling @angular/platform-browser : es2015 as esm2015 Compiling @angular/forms : es2015 as esm2015 Compiling @angular/cdk/bidi : es2015 as esm2015 Compiling @angular/common/http : es2015 as esm2015 Compiling @angular/cdk/platform : es2015 as esm2015 Compiling @angular/cdk/portal : es2015 as esm2015 Compiling @angular/router : es2015 as esm2015 Compiling @angular/platform-browser/animations : es2015 as esm2015 Compiling @angular/flex-layout/core : es2015 as esm2015 Compiling @angular/platform-browser-dynamic : es2015 as esm2015 Compiling @angular/platform-browser/testing : es2015 as esm2015 Compiling @angular/common/testing : es2015 as esm2015 Compiling @angular/cdk/a11y : es2015 as esm2015 Compiling @angular/cdk/scrolling : es2015 as esm2015 Compiling @angular/cdk/layout : es2015 as esm2015 Compiling @nativescript/angular : es2015 as esm2015 Compiling @angular/cdk/text-field : es2015 as esm2015 Compiling @angular/flex-layout/extended : es2015 as esm2015 Compiling @angular/flex-layout/flex : es2015 as esm2015 Compiling @angular/flex-layout/grid : es2015 as esm2015 Compiling @angular/cdk/overlay : es2015 as esm2015 Compiling @angular/material/core : es2015 as esm2015 Compiling @angular/cdk/stepper : es2015 as esm2015 Compiling @angular/cdk/table : es2015 as esm2015 Compiling @angular/cdk/tree : es2015 as esm2015 Compiling @agm/core : es2015 as esm2015 Compiling @angular/flex-layout : es2015 as esm2015 Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015 Compiling apollo-angular-link-http-common : es2015 as esm2015 Compiling @angular/animations/browser/testing : es2015 as esm2015 Compiling @angular/material/form-field : es2015 as esm2015 Compiling @angular/material/button : es2015 as esm2015 Compiling @angular/material/icon : es2015 as esm2015 Compiling @angular/material/dialog : es2015 as esm2015 Compiling @angular/material/tooltip : es2015 as esm2015 Compiling @angular/material/divider : es2015 as esm2015 Compiling @angular/material/sort : es2015 as esm2015 Compiling @angular/cdk/clipboard : es2015 as esm2015 Compiling @angular/cdk/drag-drop : es2015 as esm2015 Compiling @angular/material/input : es2015 as esm2015 Compiling @angular/material/select : es2015 as esm2015 Compiling @angular/common/http/testing : es2015 as esm2015 Compiling @angular/google-maps : es2015 as esm2015 Compiling @angular/material/autocomplete : es2015 as esm2015 Compiling @angular/material/badge : es2015 as esm2015 Compiling @angular/material/bottom-sheet : es2015 as esm2015 Compiling @angular/material/button-toggle : es2015 as esm2015 Compiling @angular/material/card : es2015 as esm2015 Compiling @angular/material/checkbox : es2015 as esm2015 Compiling @angular/material/chips : es2015 as esm2015 Compiling @angular/material/datepicker : es2015 as esm2015 Compiling @angular/material/paginator : es2015 as esm2015 Compiling @angular/material/expansion : es2015 as esm2015 Compiling @angular/material/grid-list : es2015 as esm2015 Compiling @angular/material/icon/testing : es2015 as esm2015 Compiling @angular/material/list : es2015 as esm2015 Compiling @angular/material/menu : es2015 as esm2015 Compiling @angular/material/progress-bar : es2015 as esm2015 Compiling @angular/material/progress-spinner : es2015 as esm2015 Compiling @angular/material/radio : es2015 as esm2015 Compiling @angular/material/sidenav : es2015 as esm2015 Compiling @angular/material/slide-toggle : es2015 as esm2015 Compiling @angular/material/slider : es2015 as esm2015 Compiling @angular/material/snack-bar : es2015 as esm2015 Compiling @angular/material/stepper : es2015 as esm2015 Compiling @angular/material/table : es2015 as esm2015 Compiling @angular/material/tabs : es2015 as esm2015 Compiling @angular/material/toolbar : es2015 as esm2015 Compiling @angular/material/tree : es2015 as esm2015 Compiling @angular/router/testing : es2015 as esm2015 Compiling @angular/youtube-player : es2015 as esm2015 Compiling @angular-material-extensions/google-maps-autocomplete : es2015 as esm2015 Compiling @nativescript/angular/testing : es2015 as esm2015 Compiling @swimlane/ngx-charts : es2015 as esm2015 Compiling @syncfusion/ej2-angular-richtexteditor : es2015 as esm2015 Compiling @zxing/ngx-scanner : es2015 as esm2015 Compiling angular-in-memory-web-api : module as esm5 Compiling apollo-angular/headers : es2015 as esm2015 Compiling apollo-angular/http : es2015 as esm2015 Compiling apollo-angular/testing : es2015 as esm2015 Compiling apollo-angular-link-http : es2015 as esm2015 Compiling nativescript-angular : es2015 as esm2015 Compiling nativescript-ui-autocomplete-angular : es2015 as esm2015 Compiling nativescript-ui-calendar-angular : es2015 as esm2015 Compiling nativescript-ui-chart-angular : es2015 as esm2015 Compiling nativescript-ui-dataform-angular : es2015 as esm2015 Compiling nativescript-ui-gauge-angular : es2015 as esm2015 Compiling nativescript-ui-listview-angular : es2015 as esm2015 Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-autocomplete/angular/fesm2015/nativescript-ui-autocomplete-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-autocomplete/angular/fesm2015/nativescript-ui-autocomplete-angular.js.map' Compiling nativescript-ui-sidedrawer-angular : es2015 as esm2015 Compiling ngx-input-file : es2015 as esm2015 Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-calendar/angular/fesm2015/nativescript-ui-calendar-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-calendar/angular/fesm2015/nativescript-ui-calendar-angular.js.map' Compiling ngx-pagination : module as esm5 Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-chart/angular/fesm2015/nativescript-ui-chart-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-chart/angular/fesm2015/nativescript-ui-chart-angular.js.map' Compiling ngx-perfect-scrollbar : es2015 as esm2015 Compiling ngx-spinner : es2015 as esm2015 Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-dataform/angular/fesm2015/nativescript-ui-dataform-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-dataform/angular/fesm2015/nativescript-ui-dataform-angular.js.map' Compiling ngx-swiper-wrapper : es2015 as esm2015 Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-gauge/angular/fesm2015/nativescript-ui-gauge-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-gauge/angular/fesm2015/nativescript-ui-gauge-angular.js.map' Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-sidedrawer/angular/fesm2015/nativescript-ui-sidedrawer-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-sidedrawer/angular/fesm2015/nativescript-ui-sidedrawer-angular.js.map' Warning: Unable to fully load /usr/src/app/node_modules/nativescript-ui-listview/angular/fesm2015/nativescript-ui-listview-angular.js for source-map flattening: ENOENT: no such file or directory, open '/usr/src/app/node_modules/nativescript-ui-listview/angular/fesm2015/nativescript-ui-listview-angular.js.map' Generating ES5 bundles for differential loading... ES5 bundle generation complete. chunk {common} common-es2015.js, common-es2015.js.map (common) 1.35 kB [rendered] chunk {common} common-es5.js, common-es5.js.map (common) 1.62 kB [rendered] chunk {followers-followers-module} followers-followers-module-es2015.js, followers-followers-module-es2015.js.map (followers-followers-module) 10.9 kB [rendered] chunk {followers-followers-module} followers-followers-module-es5.js, followers-followers-module-es5.js.map (followers-followers-module) 13.4 kB [rendered] chunk {landing-landing-module} landing-landing-module-es2015.js, landing-landing-module-es2015.js.map (landing-landing-module) 21.4 kB [rendered] chunk {landing-landing-module} landing-landing-module-es5.js, landing-landing-module-es5.js.map (landing-landing-module) 23.7 kB [rendered] chunk {customers-customers-module} customers-customers-module-es2015.js, customers-customers-module-es2015.js.map (customers-customers-module) 36.8 kB [rendered] chunk {customers-customers-module} customers-customers-module-es5.js, customers-customers-module-es5.js.map (customers-customers-module) 40.8 kB [rendered] chunk {pages-cart-cart-module} pages-cart-cart-module-es2015.js, pages-cart-cart-module-es2015.js.map (pages-cart-cart-module) 14.7 kB [rendered] chunk {pages-cart-cart-module} pages-cart-cart-module-es5.js, pages-cart-cart-module-es5.js.map (pages-cart-cart-module) 17 kB [rendered] chunk {pages-compare-compare-module} pages-compare-compare-module-es2015.js, pages-compare-compare-module-es2015.js.map (pages-compare-compare-module) 16.8 kB [rendered] chunk {pages-compare-compare-module} pages-compare-compare-module-es5.js, pages-compare-compare-module-es5.js.map (pages-compare-compare-module) 19 kB [rendered] chunk {coupons-coupons-module} coupons-coupons-module-es2015.js, coupons-coupons-module-es2015.js.map (coupons-coupons-module) 38 kB [rendered] chunk {coupons-coupons-module} coupons-coupons-module-es5.js, coupons-coupons-module-es5.js.map (coupons-coupons-module) 42 kB [rendered] chunk {dashboard-dashboard-module} dashboard-dashboard-module-es2015.js, dashboard-dashboard-module-es2015.js.map (dashboard-dashboard-module) 50.4 kB [rendered] chunk {dashboard-dashboard-module} dashboard-dashboard-module-es5.js, dashboard-dashboard-module-es5.js.map (dashboard-dashboard-module) 58.7 kB [rendered] chunk {pages-contact-contact-module} pages-contact-contact-module-es2015.js, pages-contact-contact-module-es2015.js.map (pages-contact-contact-module) 11.7 kB [rendered] chunk {pages-contact-contact-module} pages-contact-contact-module-es5.js, pages-contact-contact-module-es5.js.map (pages-contact-contact-module) 13.7 kB [rendered] chunk {analytics-analytics-module} analytics-analytics-module-es2015.js, analytics-analytics-module-es2015.js.map (analytics-analytics-module) 49.6 kB [rendered] chunk {analytics-analytics-module} analytics-analytics-module-es5.js, analytics-analytics-module-es5.js.map (analytics-analytics-module) 57.8 kB [rendered] chunk {pages-home-home-module} pages-home-home-module-es2015.js, pages-home-home-module-es2015.js.map (pages-home-home-module) 11.6 kB [rendered] chunk {pages-home-home-module} pages-home-home-module-es5.js, pages-home-home-module-es5.js.map (pages-home-home-module) 14 kB [rendered] chunk {default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995} default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995-es2015.js, default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995-es2015.js.map (default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995) 101 kB [rendered] chunk {default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995} default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995-es5.js, default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995-es5.js.map (default~coupons-coupons-module~customers-customers-module~followers-followers-module~pages-brands-br~34a2f995) 105 kB [rendered] chunk {pages-sign-in-sign-in-module} pages-sign-in-sign-in-module-es2015.js, pages-sign-in-sign-in-module-es2015.js.map (pages-sign-in-sign-in-module) 16.6 kB [rendered] chunk {pages-sign-in-sign-in-module} pages-sign-in-sign-in-module-es5.js, pages-sign-in-sign-in-module-es5.js.map (pages-sign-in-sign-in-module) 18.9 kB [rendered] chunk {pages-wishlist-wishlist-module} pages-wishlist-wishlist-module-es2015.js, pages-wishlist-wishlist-module-es2015.js.map (pages-wishlist-wishlist-module) 13.1 kB [rendered] chunk {pages-wishlist-wishlist-module} pages-wishlist-wishlist-module-es5.js, pages-wishlist-wishlist-module-es5.js.map (pages-wishlist-wishlist-module) 15.5 kB [rendered] chunk {refund-refund-module} refund-refund-module-es2015.js, refund-refund-module-es2015.js.map (refund-refund-module) 9.86 kB [rendered] chunk {refund-refund-module} refund-refund-module-es5.js, refund-refund-module-es5.js.map (refund-refund-module) 12.1 kB [rendered] chunk {runtime} runtime-es2015.js, runtime-es2015.js.map (runtime) 10.6 kB [entry] [rendered] chunk {runtime} runtime-es5.js, runtime-es5.js.map (runtime) 10.6 kB [entry] [rendered] chunk {pages-checkout-checkout-module} pages-checkout-checkout-module-es2015.js, pages-checkout-checkout-module-es2015.js.map (pages-checkout-checkout-module) 41.9 kB [rendered] chunk {pages-checkout-checkout-module} pages-checkout-checkout-module-es5.js, pages-checkout-checkout-module-es5.js.map (pages-checkout-checkout-module) 44.3 kB [rendered] chunk {polyfills} polyfills-es2015.js, polyfills-es2015.js.map (polyfills) 295 kB [initial] [rendered] chunk {reviews-reviews-module} reviews-reviews-module-es2015.js, reviews-reviews-module-es2015.js.map (reviews-reviews-module) 13.1 kB [rendered] chunk {reviews-reviews-module} reviews-reviews-module-es5.js, reviews-reviews-module-es5.js.map (reviews-reviews-module) 16.1 kB [rendered] chunk {pages-brands-brands-module} pages-brands-brands-module-es2015.js, pages-brands-brands-module-es2015.js.map (pages-brands-brands-module) 35.7 kB [rendered] chunk {pages-brands-brands-module} pages-brands-brands-module-es5.js, pages-brands-brands-module-es5.js.map (pages-brands-brands-module) 39.7 kB [rendered] chunk {pages-account-account-module} pages-account-account-module-es2015.js, pages-account-account-module-es2015.js.map (pages-account-account-module) 55.8 kB [rendered] chunk {pages-account-account-module} pages-account-account-module-es5.js, pages-account-account-module-es5.js.map (pages-account-account-module) 62.9 kB [rendered] chunk {sales-sales-module} sales-sales-module-es2015.js, sales-sales-module-es2015.js.map (sales-sales-module) 18.9 kB [rendered] chunk {sales-sales-module} sales-sales-module-es5.js, sales-sales-module-es5.js.map (sales-sales-module) 23.4 kB [rendered] chunk {support-support-module} support-support-module-es2015.js, support-support-module-es2015.js.map (support-support-module) 12.1 kB [rendered] chunk {support-support-module} support-support-module-es5.js, support-support-module-es5.js.map (support-support-module) 14.8 kB [rendered] chunk {withdrawal-withdrawal-module} withdrawal-withdrawal-module-es2015.js, withdrawal-withdrawal-module-es2015.js.map (withdrawal-withdrawal-module) 10.3 kB [rendered] chunk {withdrawal-withdrawal-module} withdrawal-withdrawal-module-es5.js, withdrawal-withdrawal-module-es5.js.map (withdrawal-withdrawal-module) 12.6 kB [rendered] chunk {pages-products-products-module} pages-products-products-module-es2015.js, pages-products-products-module-es2015.js.map (pages-products-products-module) 71.9 kB [rendered] chunk {pages-products-products-module} pages-products-products-module-es5.js, pages-products-products-module-es5.js.map (pages-products-products-module) 79.2 kB [rendered] chunk {products-products-module} products-products-module-es2015.js, products-products-module-es2015.js.map (products-products-module) 84.9 kB [rendered] chunk {products-products-module} products-products-module-es5.js, products-products-module-es5.js.map (products-products-module) 95.2 kB [rendered] chunk {styles} styles-es2015.js, styles-es2015.js.map (styles) 995 kB [initial] [rendered] chunk {styles} styles-es5.js, styles-es5.js.map (styles) 997 kB [initial] [rendered] chunk {admin-admin-module} admin-admin-module-es2015.js, admin-admin-module-es2015.js.map (admin-admin-module) 161 kB [rendered] chunk {admin-admin-module} admin-admin-module-es5.js, admin-admin-module-es5.js.map (admin-admin-module) 186 kB [rendered] chunk {users-users-module} users-users-module-es2015.js, users-users-module-es2015.js.map (users-users-module) 138 kB [rendered] chunk {users-users-module} users-users-module-es5.js, users-users-module-es5.js.map (users-users-module) 150 kB [rendered] chunk {main} main-es2015.js, main-es2015.js.map (main) 264 kB [initial] [rendered] chunk {main} main-es5.js, main-es5.js.map (main) 308 kB [initial] [rendered] chunk {polyfills-es5} polyfills-es5.js, polyfills-es5.js.map (polyfills-es5) 841 kB [initial] [rendered] chunk {default~analytics-analytics-module~dashboard-dashboard-module} default~analytics-analytics-module~dashboard-dashboard-module-es2015.js, default~analytics-analytics-module~dashboard-dashboard-module-es2015.js.map (default~analytics-analytics-module~dashboard-dashboard-module) 1.86 MB [rendered] chunk {default~analytics-analytics-module~dashboard-dashboard-module} default~analytics-analytics-module~dashboard-dashboard-module-es5.js, default~analytics-analytics-module~dashboard-dashboard-module-es5.js.map (default~analytics-analytics-module~dashboard-dashboard-module) 2.2 MB [rendered] chunk {vendor} vendor-es2015.js, vendor-es2015.js.map (vendor) 8.35 MB [initial] [rendered] chunk {vendor} vendor-es5.js, vendor-es5.js.map (vendor) 10.2 MB [initial] [rendered] Date: 2020-10-19T18:57:26.892Z - Hash: 695018c67ce686ee50c2 - Time: 99661ms Removing intermediate container 8fcac0d4b3a1 ---> acb355547e44 Step 8/9 : EXPOSE 8080 ---> Running in a5cafbb93c64 Removing intermediate container a5cafbb93c64 ---> e3467973c49e Step 9/9 : CMD [ "node", "server.js" ] ---> Running in fed0bc5ee04b Removing intermediate container fed0bc5ee04b ---> 2e5944cde5d4 Successfully built 2e5944cde5d4 Successfully tagged appwithdocker:latest SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories. Terminal will be reused by tasks, press any key to close it. ``` ``` Build on Windows 10 Docker Desktop with WSL2 ```

Also works even if change RUN npm install to RUN npm ci in Dockerfile

alan-agius4 commented 3 years ago

@plohoj, thanks for looking at this 😊.

alan-agius4 commented 3 years ago

Closing as per above, feel free to re-open.

angular-automatic-lock-bot[bot] commented 3 years ago

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.