-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layerfile
22 lines (18 loc) · 960 Bytes
/
Layerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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 ca-certificates curl gnupg lsb-release && \
sudo mkdir -p /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |\
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && \
apt-get install docker-ce docker-ce-cli containerd.io
# copy files from the repository into this staging server
COPY . .
RUN docker build -t image .
RUN docker run -d -p 7777:7777 image
EXPOSE WEBSITE http://localhost:7777