Sign inSign up

blbridges96/hw6

By blbridges96

Updated almost 8 years ago

COE 332 - Homework 6 | Containerized Flask API for Homework 6.

Image
0

10K+

blbridges96/hw6 repository overview

COE 332 - Homework 6

Containerized Flask API for Homework 6.

Available on Docker Hub as blbridges96/hw6

Building

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.

Running

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.

Tag summary

Content type

Image

Digest

Size

30.3 MB

Last updated

almost 8 years ago

docker pull blbridges96/hw6