Guest User

Untitled

a guest
May 24th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. docker run -dt --name Abathur \
  2. -p 3000:3000 \
  3. -v ~/Abathur:/root \
  4. -e FLASK_APP=/root/hello.py \
  5. python:2-slim
  6. docker exec Abathur pip install flask
  7. echo "from flask import Flask\napp = Flask(__name__)\n@app.route('/')\ndef hello():\n return '<h1>Hello World</h1>'" > ~/Abathur/hello.py
  8. docker exec -d Abathur flask run --host 0.0.0.0 --port 3000
Add Comment
Please, Sign In to add comment