commit 96678994a3d7494b59e7584c77aa8a16de2ae280 Author: Sameer Dev Date: Tue Apr 23 17:45:42 2024 +0530 ID:FCLD-228;DONE:7;HOURS:7; system file gen test in builder diff --git a/fc.toml b/fc.toml new file mode 100644 index 0000000..c733025 --- /dev/null +++ b/fc.toml @@ -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" diff --git a/index.py b/index.py new file mode 100644 index 0000000..1934239 --- /dev/null +++ b/index.py @@ -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) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..95fef4e --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Flask==3.0.3