FROM python:3.10-slim # Create a user and set the working directory RUN useradd user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ HF_TOKEN="hf_BSEQRrgyRVuNfkhWwUjTwGEQxUvYRySrzda" WORKDIR $HOME/app # Copy the application code COPY --chown=user ./ $HOME/app # Install dependencies from requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 7860 (FastAPI default) EXPOSE 7860 # Set the entrypoint for the FastAPI app CMD ["uvicorn", "app:app", "--reload", "--host=0.0.0.0", "--port=7860"]