forked from Opaksfire/FIRE-MD
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Layerfile
18 lines (14 loc) · 699 Bytes
/
Layerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM vm/ubuntu:18.04
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 . .
RUN docker build -t image .
RUN docker run -d -p 5000:5000 image
EXPOSE WEBSITE http://localhost:5000