Created
April 11, 2022 13:25
-
-
Save ptrxyz/89bf8b902c1848a93bb114811fdec491 to your computer and use it in GitHub Desktop.
Docker Workshop, basic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def index(): | |
return "Hello from Python!\n" | |
app.run(host="0.0.0.0", port=3000, debug=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt update -y && apt install -y python3 python3-pip && pip install flask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment