image-embedding-api / Dockerfile
Annajds's picture
Create Dockerfile
50f864f verified
raw
history blame contribute delete
436 Bytes
# Use lightweight Python base image
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose Hugging Face default port
EXPOSE 7860
# Run FastAPI app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]