Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (33 loc) · 849 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 849 Bytes

Docker jusbrasil/python-web

Docker base image for Python web applications in JusBrasil.

Installed Packages

System:

Python:

Node:

Usage

For example, you can write an app.py Flask application:

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return 'Hello World!\n'

if __name__ == "__main__":
    app.run(host="0.0.0.0", debug=True)

Then, configure your Python dependencies in requirements.txt:

Flask==0.10.1

Next, up, Dockerfile:

FROM jusbrasil/python-web

CMD ['python', 'app.py']