Skip to content

Commit

Permalink
Create Layerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Guru322 authored Aug 12, 2024
1 parent 0d15731 commit 1ebb083
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Layerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 1ebb083

Please sign in to comment.