Skip to content
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
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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;"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
10 changes: 10 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 80;
listen 443;
server_name _;

location / {
root /usr/share/nginx/html;
index index.html;
}
}