25 lines
558 B
Docker
25 lines
558 B
Docker
|
# base image
|
||
|
FROM node:latest
|
||
|
|
||
|
ADD src /application/src
|
||
|
ADD e2e /application/e2e
|
||
|
ADD package-lock.json /application/
|
||
|
ADD package.json /application/
|
||
|
ADD angular.json /application/
|
||
|
ADD browserslist /application/
|
||
|
ADD karma.conf.js /application/
|
||
|
ADD protractor.conf.js /application/
|
||
|
ADD tsconfig.json /application/
|
||
|
ADD tslint.json /application/
|
||
|
WORKDIR /application/
|
||
|
|
||
|
# add `/app/node_modules/.bin` to $PATH
|
||
|
ENV PATH /app/node_modules/.bin:$PATH
|
||
|
|
||
|
# install and cache app dependencies
|
||
|
RUN npm install
|
||
|
|
||
|
# start app
|
||
|
CMD ["npx", "ng", "serve", "--host", "0.0.0.0"]
|
||
|
|