bge-embedding-api / Dockerfile
Mister2005's picture
Upload 5 files
8592024 verified
Raw History Blame Contribute Delete
400 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app.py .
# Expose port
EXPOSE 7860
# Set environment variable for HuggingFace Spaces
ENV GRADIO_SERVER_NAME="0.0.0.0"
# Run the application
CMD ["python", "app.py"]