ID:FCLD-228;DONE:7;HOURS:7; system file gen test in builder

This commit is contained in:
Sameer Dev 2024-04-23 17:45:42 +05:30
commit 96678994a3
3 changed files with 37 additions and 0 deletions

26
fc.toml Normal file
View File

@ -0,0 +1,26 @@
app = "python-buildpack-app-sample"
region = "asia-south1"
handler = ""
[build]
buildpack_builder = "paketobuildpacks/builder-jammy-base"
buildpacks = ["paketo-buildpacks/python"]
ignorefile = ".gitignore"
[build.args]
foo = "bar"
[env]
FOO = "BAR"
[http_service]
internal_port = 3000
[[http_service.checks]]
interval = "1m21s"
timeout = "7s"
grace_period = "2s"
method = "GET"
path = "/"
protocol = "http"
[http_service.checks.headers]
My-Custom-Header = "whatever"

10
index.py Normal file
View File

@ -0,0 +1,10 @@
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
return 'Hello World!'
if __name__ == '__main__':
app.run(port=3000)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
Flask==3.0.3