COE 332 - Homework 6 | Containerized Flask API for Homework 6.
10K+
Containerized Flask API for Homework 6.
Available on Docker Hub as blbridges96/hw6
Because the start_api.py script relies on files from other homeworks, the build context for the Docker image is the root directory of the repository. The Docker build command from this direcotry is:
$ docker build -f Dockerfile ..
To make this easier, run make in this directory and it will build and tag the image as blbridges96/hw6.
The simplest way to run the container is with the docker-compose.yml file:
$ docker-compose up
To run Flask in debug mode, set the DEBUG flag to 1 on the command line as well:
$ DEBUG=1 docker-compose up
You can also run the API using the Makefile with make serve.
Content type
Image
Digest
Size
30.3 MB
Last updated
almost 8 years ago
docker pull blbridges96/hw6