diff --git a/Dockerfile b/Dockerfile index 6a71c91b..f9cc4247 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ RUN git clone https://github.com/akveo/ng2-admin.git /var/www \ && npm run clean \ && npm install --global webpack webpack-dev-server typescript@2.1.5 \ && npm install \ - && npm run prebuild:prod && npm run build:prod + && npm run build:prod:aot EXPOSE 8080 WORKDIR /var/www -ENTRYPOINT ["npm", "run", "server:prod"] +ENTRYPOINT ["npm", "run", "start:prod"] diff --git a/package.json b/package.json index 4fd930f4..f6d3a9b7 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "lint:ci": "npm run lint && npm run lint:styles", "pree2e": "webdriver-manager update --standalone false --gecko false", "e2e": "ng e2e", + "clean": "npm cache clean && npm run rimraf -- node_modules doc typings coverage dist", "clean:dist": "npm run rimraf -- dist", "clean:coverage": "npm run rimraf -- coverage", "docs:deploy": "wintersmith build -C docs && gh-pages -d docs/build",