24 lines
702 B
Docker
24 lines
702 B
Docker
FROM node:10.24.0
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN npm config set registry https://registry.npmmirror.com \
|
|
&& npm install @angular/cli@7.3.10 @angular-devkit/build-angular@0.13.10 @angular/compiler-cli@7.2.16 typescript@3.2.4 @angular/compiler@7.2.16 @angular/core@7.2.16 node-sass@4.14.1 -g --unsafe-perm \
|
|
&& npm install
|
|
## && npm run build -- --configuration=kylin-prod
|
|
## ng serve --host 0.0.0.0 --port 8080 --configuration kylin-prod
|
|
## dist
|
|
|
|
#FROM httpd:2.4
|
|
#COPY --from=build /app/dist/ /usr/local/apache2/htdocs/
|
|
|
|
EXPOSE 8080
|
|
|
|
#CMD ["nginx", "-g", "daemon off;"]
|
|
CMD ["ng", "serve", "--host", "0.0.0.0", "--port","8080", "--configuration" ,"kylin-prod","--disable-host-check"]
|
|
|
|
|
|
|