Question 30
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.
In the Dockerfile, which command specifies which Python packages should be installed in the container?
RUN pip install -r requirements.txt
COPY dashboard.py
EXPOSE 8501
FROM python:3.11