build: fix error in Dockerfile (#1080)

This commit is contained in:
Lars Erik Storbukås 2017-08-01 13:28:24 +02:00 committed by Lex Zhukov
parent 9945954f8e
commit c290b7dcf8
2 changed files with 3 additions and 2 deletions

View file

@ -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"]

View file

@ -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",