diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..27821f6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:alpine +COPY . /usr/share/nginx/html +EXPOSE 80 443 +COPY nginx.conf /etc/nginx/conf.d/default.conf +CMD ["nginx", "-g", "daemon off;"] diff --git a/README.md b/README.md index b03cf22..68effff 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,13 @@ The project structure is as follows: - [Sayed Afnan Khazi](https://github.com/Sayed-Afnan-Khazi) - [Aryan Thakur](https://github.com/Aryan-Kumar-Thakur) + +## Steps to use Docker + +```bash +docker build -t your-image-name:tag . +``` + +```bash +docker run -itd -p 80:80 -p 443:443 your-image-name:tag +``` diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..69a204b --- /dev/null +++ b/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80; + listen 443; + server_name _; + + location / { + root /usr/share/nginx/html; + index index.html; + } +}