# Use the official Python image as a base image FROM python:3.12.4 # Set the working directory in the container WORKDIR /smartcat # Copy the current directory contents into the container COPY . /smartcat # Install any needed dependencies specified in requirements.txt RUN pip install --upgrade pip RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 8501 ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 # CMD ["uvicorn", "scripts.api:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"] # Command to start FastAPI and Streamlit CMD ["bash", "-c", "uvicorn scripts.api:app --host 0.0.0.0 --port 7860 & streamlit run app.py --server.port=8501 --server.address=0.0.0.0"]