-
-
Notifications
You must be signed in to change notification settings - Fork 211
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 and Docker-compose #1127
Conversation
@ShobhitPatra is attempting to deploy a commit to the MD AZFAR ALAM's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Thank you, ShobhitPatra, for your contribution! Your pull request has been submitted successfully. A maintainer will review it as soon as possible. We appreciate your support in making Ezyshop better. 🎉
@mdazfar2 Please review it. |
Hey @ShobhitPatra, it's been over 15 minutes, and it still hasn't created an image. Can you tell me how long it usually takes to create an image and a Docker container? |
@mdazfar2 it will take time,specially the steps npm i and copy . . |
Hey, Node has been installed on my PC for a long time, and I use it regularly. We don't use Node for the backend; it is built on Next.js, which is serverless and makes it easy to manage both the frontend and backend. |
i'm talking about the docker image of node from dockerhub,either way I think using the alpine version would do just fine here,should i make the change and raise a new PR? |
Alright! create new PR |
@mdazfar2 ,please review it |
Hey @ShobhitPatra, this time the image was created successfully, but when I created the container to run it locally, it didn't show anything. It would be great if you could help me out step by step.
Can you please tell me the purpose of build.yml and how we can use it for CI/CD with a step-by-step guide? |
@mdazfar2 What are the logs after running docker run -p 3000:3000 ezyshop ?.If the image is built successfully ,what I would suggest you doing is
|
whenever you merge a pull request in the main branch build.yml would allow github to automatically do these for you: |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Amazing work
Description
Added Dockerfile for containerizing the project.
Added docker-compose.yaml for easy setup and development.
Added .dockerignore to exclude unnecessary files during build.
Screenshots / videos (if applicable)