FROM python:3.11 # Set the working directory inside the container WORKDIR /app # Copy all project files into the container COPY . /app # Install dependencies RUN pip install --upgrade pip RUN mkdir -p /app/logs && chmod -R 777 /app/logs # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 # Run FastAPI and Streamlit in parallel CMD ["uvicorn" ,"main:app","--host" ,"0.0.0.0", "--port", "7860"]