-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayerfile
More file actions
22 lines (17 loc) · 795 Bytes
/
Layerfile
File metadata and controls
22 lines (17 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#This is an example LayerCI configuration for Docker!
FROM vm/ubuntu:18.04
# To note: Layerfiles create entire VMs, *not* containers!
LABEL display_name=testName
# 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 sudo ./setup.sh
RUN docker build -t image .
RUN docker run -d -p 8080:8080 image
EXPOSE WEBSITE http://localhost:8080