skip to Main Content

Running a Flask App in docker doesn't show a page in browser

I created the following Flask app: app.py from flask import Flask, render_template app = Flask(__name__) @app.route('/') def inicio(): return render_template('index.html') if __name__=='__main__': app.run(debug=True) index.html <html> <head> </head> <body> <p>This is a beautiful world indeed</p> </body> </html> Dockerfile FROM python:3.9-alpine COPY…

VIEW QUESTION
Back To Top
Search