ohamlab-ai-toolkit / Dockerfile
rahul7star's picture
Update Dockerfile
810e0f4 verified
raw
history blame contribute delete
412 Bytes
FROM python:3.10-slim
RUN apt update && apt install -y git && apt clean
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all Python files (including app.py and lora_trainer.py)
COPY app.py .
# Expose the port Hugging Face Spaces expects
EXPOSE 7860
# Start the FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]