Update 'face_recognition/app/app.py'

This commit is contained in:
fabrice 2019-06-08 18:59:15 +00:00
parent b1b54d8987
commit ef136b6c49

View File

@ -1,9 +1,15 @@
from flask import Flask
import os
app = Flask(__name__)
@app.route('/')
def hello_docker():
return 'Hello, I run in a docker container'
@app.route('/acces_minio')
def access_minio():
minioClient = Minio('minio:9000', access_key=os.environ['s3-name'], secret_key=os.environ['s3-password'], secure=True)
return minioClient.list_buckets()
if __name__ == '__main__':
app.run(host='0.0.0.0')