Written for Statistics Canada
Blair Drummond, January 2020
Build dash app with a file upload feature, and send the files to an ML api for classification.
The python code is provided; the exercise is to write the Dockerfiles and docker-compose.yml file that tie the system together
- Install Docker
- Windows: go to the docker toolbox downloads
- Ubuntu: download instructions
- Redhat: download instructions
-
Install docker-compose with
pip install --user docker-compose
-
Download this repository.
- Try to run the dash app with
docker-compose up
...
Then test the app on localhost:8888
-
Try to come up with a new model for the classification and integrate it.
-
How would you make the storage persistent?
-
HARD: Figure out how to use a production-grade webserver (
uwsgi
orgunicorn
)