From 6b6f06bcd019b316b32547ed7a7b518481ca6328 Mon Sep 17 00:00:00 2001 From: Rohan Rustagi <110477025+RohanRusta21@users.noreply.github.com> Date: Sat, 27 May 2023 21:04:22 +0000 Subject: [PATCH 1/2] "Dockerized the Website using Docker and Nginx" --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..60408d1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM ubuntu +LABEL maintainer="ROHAN RUSTAGI" +RUN apt update -y +RUN apt install nginx -y +COPY . /var/www/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file From 471d2a7a6a644b77203ae3d35660672e2d284a27 Mon Sep 17 00:00:00 2001 From: Rohan Rustagi <110477025+RohanRusta21@users.noreply.github.com> Date: Sun, 28 May 2023 02:36:40 +0530 Subject: [PATCH 2/2] Updated ReadMe.md with Docker Build Commands --- ReadMe.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ReadMe.md b/ReadMe.md index 3def838..10ef1a4 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -191,4 +191,12 @@ All the YouTube Videos that are related to this project are listed in chronologi 3. [Cats in Tech GitHub ReadMe Project Information](https://youtu.be/JfUWUF-mq6k?list=PLO_Y0rsm7b3bengFlB69pxuQcl9vmGmhk) 4. Steps to Start with Open Source through GSSoC ’23 (WIP) 5. How to get the best out of GSSoC ’23 (WIP) -6. Contribution Instructions for First Timers (WIP) \ No newline at end of file +6. Contribution Instructions for First Timers (WIP) + + +## Command to BUILD and RUN dockerized website + + +### `docker build -t .` + +### `docker run -d -p 80:80 `