LayerCI Angular Example

#This is an example LayerCI configuration for Angular
FROM vm/ubuntu:18.04

# To note: Layerfiles create entire VMs, *not* containers!

# install node 10
RUN curl -sL | bash
RUN apt-get install --no-install-recommends gcc g++ make nodejs

# install angular CLI
RUN npm install -g @angular/cli

COPY . .
RUN npm install
RUN ng build --optimization=false
# small hack - node doesn't persist in destination of a COPY
RUN BACKGROUND ng serve --host --disable-host-check
EXPOSE WEBSITE http://localhost:4200
Try this example live