File size: 443 Bytes
cdc2338
6484c05
 
 
 
 
 
 
 
76d8a69
cdc2338
1
2
3
4
5
6
7
8
9
10
11
12
FROM huggingface/autotrain-advanced:latest

# Copy the requirements.txt file into the Docker image
COPY requirements.txt /app/requirements.txt

# Set the working directory
WORKDIR /app

# Install the Python packages from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && uvicorn autotrain.app:app --host 0.0.0.0 --port 7860 --reload --workers 4