Deploy gradio app on my own server machine fails
I tried to build & deploy my gradio app using docker, it successfully deployed but can not access to the app externally.–gradio app code–app.pyimport gradio as gr

app = gr.Blocks()
... ... 
app.queue(concurrency_count=1)
app.launch(enable_queue=True, share=True,
           server_name="0.0.0.0", server_port=7860)Dockerfile... ...
RUN mkdir /app
WORKDIR /app
... ...
EXPOSE 7860

CMD ["python", "app.py"]Deploy cmddocker run -d -p 7860:7860 --name my_app image_nameThen I try to visit priviate_server_ip:7860, but I can not see the app interface
2023-06-01T21:34:33Z
hi@stevezkware you deploying it on Spaces? if so, here is a Gradio Dockerfile working examplehuggingface.coDockerfile · sayakpaul/demo-docker-gradio at mainWe’re on a journey to advance and democratize artificial intelligence through open source and open science.huggingface.coDemo Docker Gradio - a Hugging Face Space by sayakpaulDiscover amazing ML apps made by the community
2023-06-01T22:05:28Z
Hi@radamesThank you for your response, I am not deploying it on Spaces, instead, deploying on a remote machine.But I am curious where I should correct in my Dockerfile, because I don’t know which step is wrong , so I still confused how can I make it workThank you
2023-06-01T22:07:45Z
hi@stevezkwI see, sorry I just noticed the issue, please disable share i.e.share=Falsewhen running on local/remote machine.shareenable a reverse proxy via Gradio serversSharing Your App
2023-06-01T22:09:49Z
Oh Thank you for your great suggestion@radamesI’ll just try it out, and will keep you updated when I have new resultThank you so much
2023-06-01T22:16:53Z
Hi@radames, update:after setting share=False, and build + push + pull + deploy againStill see the same result:But thank you for your advice
2023-06-01T22:45:04Z
sorry@stevezkw, I’m not sure if I can help since it’s a different provider, however I’d suggest you to test your Dockerfile on our Spaces docker sdk and then try on your providerhuggingface.coDocker SpacesWe’re on a journey to advance and democratize artificial intelligence through open source and open science.
2023-06-01T23:45:38Z
Hi@radamesI found the reason, my faultI am sorry, I made a typal mistake on version number:after correcting, I success:image1603×1241 32.9 KBThank you for your friendly and patient helps