Question 27
Scenario 3 : Deploying a Data Dashboard with Docker
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.
Based on the above data, answer the given subquestions.
After building the Docker image, which command correctly runs the container and makes the dashboard accessible on port 8501?
docker build -t dashboard .
docker run -p 8501:8501 dashboard
docker push dashboard
None of these