# Use the official Python image as a base image | |
FROM python:3.8-slim-buster | |
# Install MongoDB | |
RUN apt-get update && apt-get install -y mongodb | |
# Copy the app code to the image | |
COPY . /app | |
WORKDIR /app | |
# Install the app dependencies | |
RUN pip install -r requirements.txt | |
# Run the app | |
CMD ["streamlit", "run", "app.py"] |