-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Adds a Guide on deploying Gradio apps with Docker #7935
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/a7c65f77bc5997c54e3e4350af0b1be30732f323/gradio-4.25.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@a7c65f77bc5997c54e3e4350af0b1be30732f323#subdirectory=client/python" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
|
||
Next, we'll create a Dockerfile to specify how our app should be built and run in a Docker container. Create a file named `Dockerfile` in the same directory as your app with the following content: | ||
|
||
```dockerfile |
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.
Gonna add support for dockerfile syntax highlighting, right now this isn't rendering correctly
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.
LGTM @abidlabs. Made a small change to add dockerfile syntax highlighting on guides
Thanks for fixing it @aliabd! |
When documenting the fix for #6920, I felt there was no adequate place to put this information in our existing docs/guides, so I added a Guide on deploying Gradio apps with Docker.
Closes: #6920
fwiw this was requested quite a bit a long time ago (#378, #24) and I think would be good from a seo perspective
Also makes the exception that users observed in #6920 more informative