Sign Up

Angular Example for

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

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

# install node 10
RUN curl -sL | bash && \
    apt-get install --no-install-recommends gcc g++ make nodejs && \
    rm -f /etc/apt/sources.list.d/nodesource.list

# 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