# Use an official Python runtime as the base image FROM python:3.9-slim # Set the working directory in the container WORKDIR /app # Install git and other necessary packages RUN apt-get update && \ apt-get install -y git && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Clone the repository into the /app directory RUN git clone https://huggingface.co/datasets/PyxiLab/Pyxilab._.Vocify . # Install the required Python packages RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code into the container COPY . . # Expose the port that FastAPI will run on EXPOSE 7860 # Command to run the FastAPI application CMD ["uvicorn", "core.app:app", "--host", "0.0.0.0", "--port", "7860"]