LayerCI NodeJS Example

#This is an example LayerCI configuration for NodeJS 10.x!
FROM vm/ubuntu:18.04

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

# Install node 10
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
RUN apt install nodejs
RUN npm install -g http-server

COPY . .
RUN echo 'hello' > hello.html

RUN BACKGROUND http-server -p 8000
EXPOSE WEBSITE http://localhost:8000
Try this example live