embeddings-RestAPI / Dockerfile
Chittrarasu's picture
deploy
2d3e80e
raw
history blame contribute delete
420 Bytes
# Use official Python base image
FROM python:3.11-slim
# Set the working directory
WORKDIR /app
# Copy all files to the container
COPY . /app
ENV PYTHONPATH=/app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port (Hugging Face uses port 7860 by default)
EXPOSE 7860
# Run the FastAPI server using uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]