Closed prathameshd9 closed 4 years ago
Hello,
can you put the app.py
content, and the result of docker ps
and curl 1.2.3.4:5000
Thanks
app.py
from flask import Flask
from flask_autoindex import AutoIndex
app = Flask(__name__)
ppath = "/app"
AutoIndex(app, browse_root=ppath)
if __name__ == "__main__":
app.run()
$docker ps
Hello,
Sorry for the delay, It's configuration docker issue as you can see
docker exec -it javadocs curl 127.0.0.1:5000
With this command you can see the content page of Flask Autoindex
host
with docker like docker run --network host --name autoindex -p 5000:5000 -ti javadocs -v /folderview:/app
(development case)
I am trying to get this up ind Docker.Pretty simple Dockerfile
And running as
docker run --name autoindex -p 5000:5000 -ti javadocs -v /folderview:/app
Gives me![Screen Shot 2019-11-22 at 3 57 05 PM](https://user-images.githubusercontent.com/26262448/69466049-fcea9c00-0d50-11ea-8ff7-0c93bc21a39a.png)
I have ppath="/app" in app.py . Any idea on what I might be missing ?