File size: 909 Bytes
3b003cb
 
 
 
 
 
693fa28
3b003cb
693fa28
 
 
 
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
29
# 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"]