Skip to content

Instantly share code, notes, and snippets.

@ptrxyz
Created April 11, 2022 13:25
Show Gist options
  • Save ptrxyz/89bf8b902c1848a93bb114811fdec491 to your computer and use it in GitHub Desktop.
Save ptrxyz/89bf8b902c1848a93bb114811fdec491 to your computer and use it in GitHub Desktop.
Docker Workshop, basic.
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)
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