auto-train / Dockerfile
ajayvikram's picture
Update Dockerfile
76d8a69 verified
raw
history blame contribute delete
443 Bytes
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