Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RohanRusta21
Copy link

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

Dockerfile Outdated
@@ -0,0 +1,7 @@
FROM ubuntu
RUN apt update -y
LABEL maintainer="Rohan Rustagi"
Copy link
Member

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!

Copy link
Author

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
Copy link
Member

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?

Copy link
Author

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
Copy link
Member

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

Copy link
Author

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.

@RohanRusta21
Copy link
Author

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,
Rohan

@Sayed-Afnan-Khazi
Copy link
Collaborator

@chandansgowda, can we merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants