From 2fb6ddd017c73a65f6ee67fa131b194e9cf633b9 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 25 Dec 2021 17:01:52 +0800 Subject: [PATCH] Create Layerfile --- Layerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Layerfile diff --git a/Layerfile b/Layerfile new file mode 100644 index 00000000..d745ce2b --- /dev/null +++ b/Layerfile @@ -0,0 +1,19 @@ +#This is an example webapp.io 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 https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \ + add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu 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