PageIndexAPI / Dockerfile
gauthamnairy's picture
Upload 42 files
b163dc2 verified
FROM python:3.10-slim
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port used by Gradio
EXPOSE 7860
# Set environment variables if needed (though secrets should be set in HF Space settings)
# ENV NVIDIA_API_KEY=...
# ENV MISTRAL_API_KEY=...
# Run the application
CMD ["python", "app.py"]