Spaces:
Sleeping
Sleeping
# 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, git-lfs, and other necessary packages | |
RUN apt-get update && \ | |
apt-get install -y git curl && \ | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \ | |
apt-get install -y git-lfs && \ | |
git lfs install && \ | |
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"] |