# Use official Python base image FROM python:3.9.12 EXPOSE 8501 # Set the working directory in the container WORKDIR /app # Copy the requirements.txt file to the container COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the entire project directory to the container COPY admin.py . # Set the entrypoint command to run admin.py with Streamlit ENTRYPOINT [ "streamlit", "run"] CMD ["admin.py"]