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

Adds a Guide on deploying Gradio apps with Docker #7935

Merged
merged 5 commits into from Apr 5, 2024
Merged

Conversation

abidlabs
Copy link
Member

@abidlabs abidlabs commented Apr 4, 2024

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

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Apr 4, 2024

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
Storybook ready! Storybook preview
🦄 Changes detecting...

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"

@gradio-pr-bot
Copy link
Contributor

gradio-pr-bot commented Apr 4, 2024

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio patch
website patch
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Adds a Guide on deploying Gradio apps with Docker

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@abidlabs
Copy link
Member Author

abidlabs commented Apr 4, 2024

I'd also like to link to a section in the docs explaining all of the env variables that Gradio supports, but I'll do that once #6644 is in @aliabd


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

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

Copy link
Collaborator

@aliabd aliabd left a 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

@abidlabs
Copy link
Member Author

abidlabs commented Apr 5, 2024

Thanks for fixing it @aliabd!

@abidlabs abidlabs merged commit 919afff into main Apr 5, 2024
8 checks passed
@abidlabs abidlabs deleted the docker-guide branch April 5, 2024 02:23
@pngwn pngwn mentioned this pull request Apr 5, 2024
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.

404 Session Not Found error When accessing gradio via a proxy
3 participants