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

Creating Dockerfile for the Discord-Clone #34

Closed
harshnayangithub opened this issue May 12, 2024 · 7 comments
Closed

Creating Dockerfile for the Discord-Clone #34

harshnayangithub opened this issue May 12, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request gssoc level3

Comments

@harshnayangithub
Copy link

Is your feature request related to a problem? Please describe.
The problem is the lack of a Dockerfile for the Discord-Clone project.

Describe the solution you'd like
Implementing a Dockerfile for the Discord-Clone project to containerize the application and simplify deployment.

@harshnayangithub
Copy link
Author

Assign it to me under gssoc'24

@Yeasir0032
Copy link
Owner

Provide steps how will you achieve this?

@harshnayangithub
Copy link
Author

harshnayangithub commented May 12, 2024

@Yeasir0032 As a DevOps enthusiast, I've drafted various Dockerfile for my projects. While I haven't thoroughly reviewed the codebase, I understand the general steps required for creating a Dockerfile for any Node.js project.

I anticipate encountering challenges while crafting the Dockerfile for such a large project, which may require troubleshooting. I believe it will take considerable amount of time for creating a Dockerfile for this project and finally reducing it's size.
Once the Dockerfile is successfully created, I plan to proceed with generating a docker-compose file for the Discord clone.

Dockerfile's basic implementation

FROM ubuntu:20.04
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
Will decide it later which port to expose
EXPOSE 3000
CMD ["npm", "start"]

@KanishkChhajed
Copy link
Contributor

I am interested in this issue .
Can you assign this issue to me.

@KanishkChhajed
Copy link
Contributor

@Yeasir0032 I made a pull request, can you review it for this #56 .

@Yeasir0032
Copy link
Owner

The docker file is crashing the server and the deployment
Screenshot from 2024-05-23 15-30-45

@Yeasir0032
Copy link
Owner

Considering my limited expertise in DevOps, I am contemplating the removal of the Docker file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc level3
Projects
None yet
Development

No branches or pull requests

3 participants