CoolFace
Apppublic

cj-dev-code/semantic_search

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile22 linesDownload Raw Back to root
1# Use slim Python base image2FROM python:3.11-slim3 4# Set working directory5WORKDIR /app6 7# Install system dependencies (optional: useful for some packages)8RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*9 10# Copy dependency list and install11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14# Copy rest of the code15COPY . .16 17# Expose port18EXPOSE 786019 20# Run FastAPI with Gradio mounted21CMD ["uvicorn", "backend.backend:app", "--host", "0.0.0.0", "--port", "7860"]22