30 Docker Practice
This exercise will pick up where we left off with our DNAanalyzer Streamlit app from the previous exercise.
Instructions
Set up a GitHub repo
Create a GitHub repository for your app using this GitHub classroom link.
Add a
README.mdfile on GitHubClone your repository to Google Cloud (or your local computer if you have Docker installed)
Add your code from the previous exercise and push to GitHub
Create a Docker image for your app
Use
python:3.9-slimfor your baseInstall Streamlit
Copy your app into the image
Finish with
CMD ["streamlit", "run", "DNAanalyzer.py", "--server.port=8080", "--server.address=0.0.0.0"]Build and test your Docker image
docker build -t dna-analyzer .(this is the exact command - be sure to include the ” .”)docker run dna-analyzer
When you are happy with the app
- Update the README with instructions for building and running the app
- Commit and push your
Dockerfileand updated README to GitHub
Assignment
Submit a link to your repository and a screenshot of the app running on Google Cloud to Blackboard.