ngx-admin/Dockerfile
gavinzhou 61bf47e16e change Dockerfile
add build.sh with build docker
2016-07-12 13:50:45 +03:00

16 lines
461 B
Docker

FROM node:latest
RUN git clone https://github.com/akveo/ng2-admin.git /var/www \
&& cd /var/www \
&& npm install --global rimraf \
&& npm run clean \
&& npm install --global bower typings webpack webpack-dev-server typescript \
&& bower install --allow-root \
&& npm run typings -- install \
&& npm install \
&& npm run prebuild:prod && npm run build:prod
EXPOSE 8080
WORKDIR /var/www
ENTRYPOINT ["npm", "run", "server:prod"]