A basic Docker image for use in Branch's Infrastructure take-home project.
Build and run via python3
$ python3 -m venv venv
$ ./venv/bin/pip install -qr requirements.txt
$ FLASK_ENV=development ./venv/bin/python3 app/server.py
Expected output:
* Serving Flask app "server" (lazy loading)
* Environment: development
* Debug mode: on
* Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
Test application is running
$ curl localhost:8000
Expected output:
Hello BranchIntl World!
Build the container image
$ docker build -t branchintl/hello-branch-world .
Run the container
$ docker run --rm -it -p 8000:8000 branchintl/hello-branch-world
Test application is running in the container
$ curl localhost:8000
Expected output:
Hello BranchIntl World!
Licensed under MIT.