LayerCI Docker Example

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

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

# install the latest version of Docker, as in the official Docker installation tutorial.
RUN apt-get update && \
    apt-get install apt-transport-https ca-certificates curl software-properties-common && \
    curl -fsSL | apt-key add - && \
    add-apt-repository "deb [arch=amd64] bionic stable" && \
    apt-get update && \
    apt install docker-ce

# copy files from the repository into this staging server
COPY . .

RUN docker build -t image .
RUN docker run -d -p 80:80 image
EXPOSE WEBSITE http://localhost:80
Try this example live