Skip to content

"Dockerized the Website using Docker and Nginx" #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: website
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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;"]
10 changes: 9 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6. Contribution Instructions for First Timers (WIP)


## Command to BUILD and RUN dockerized website


### `docker build -t <DOCKER_IMAGE> .`

### `docker run -d -p 80:80 <DOCKER_IMAGE>`