Spaces:
Sleeping
Sleeping
File size: 707 Bytes
0a7a476 66e18b7 0a7a476 66e18b7 0a7a476 78294df 0a7a476 7e7ebd8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Use the official Python image
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Install system dependencies
# Added libgomp1 which is REQUIRED for FAISS
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app and artefacts
COPY . .
# Expose the port Streamlit runs on
EXPOSE 7860
# This tells the container to look for environment variables
ENV PYTHONUNBUFFERED=1
# Command to run the app
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] |