Spaces:
Sleeping
Sleeping
File size: 756 Bytes
3b003cb 77d553c 3b003cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# 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/*
RUN git lfs install
# 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"] |