Dockerfile "Hello World" (using Anaconda & Flask)
Using docker build to run a Flask application as described in the Docker Build documentation, https://docs.docker.com/build .
This example uses the Anaconda (Miniconda) Python environment, https://repo.anaconda.com/miniconda/Miniconda3-py310_23.11.0-2-Linux-x86_64.sh
~/hello_world |
$ wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.11.0-2-Linux-x86_64.sh |
$ cat src/hello.py |
$ cat scripts/docker_build.sh |
$ cat flask_conda.buildfile |
scripts$ ./docker_build.sh
|
cat scripts/docker_run_flask.sh |
script$ ./docker_run_flask.sh
|
$ docker ps |
$ curl http://127.0.0.1:8000 |