-
Notifications
You must be signed in to change notification settings - Fork 10
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
"Added Dockerfile to dockerized the website" #14
base: main
Are you sure you want to change the base?
Conversation
Dockerfile
Outdated
@@ -0,0 +1,7 @@ | |||
FROM ubuntu | |||
RUN apt update -y | |||
LABEL maintainer="Rohan Rustagi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't take your name as maintainer!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure will remove it :)
Dockerfile
Outdated
@@ -0,0 +1,7 @@ | |||
FROM ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cant we use alpine image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we can, but the image is already very optimised and some dependencies doesn't work for alpine image. I don't have any issue using that, If you want I can use that.
Dockerfile
Outdated
LABEL maintainer="Rohan Rustagi" | ||
RUN apt install nginx -y | ||
COPY . /var/www/html | ||
EXPOSE 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will probably have to expose 443(https) too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure will add it too.
Hi @chandansgowda @ghpranav @Ramiz1336 @ShivamMenda , I have modified the Dockerfile as per the above comments. Also documented the README.md file and added nginx.conf to securely expose port 443(https). Please Review & Approve :) Thanks, |
@chandansgowda, can we merge this? |
HI @ghpranav @chandansgowda @Ramiz1336 @ShivamMenda @Sayed-Afnan-Khazi ,
I have created Dockerfile to Containerised the website which will help the website to get easily deploy on linux servers. I am actively participating in HacktoberFest 2023 :)
Please Review & Approve.
Thanks,
Rohan