# Dockerfile | |
FROM python:3.11-slim | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
curl \ | |
software-properties-common \ | |
git \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set working directory | |
WORKDIR /app | |
# Copy requirements file | |
COPY requirements.txt . | |
# Install Python dependencies | |
RUN pip3 install --no-cache-dir -r requirements.txt | |
# Copy application code | |
COPY . . | |
# Create directory for ChromaDB | |
RUN mkdir -p ./fashion_multimodal_db | |
# Expose port for Streamlit | |
EXPOSE 8501 | |
# Set environment variables | |
ENV PYTHONUNBUFFERED=1 | |
ENV STREAMLIT_SERVER_PORT=8501 | |
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
# Command to run the application | |
CMD ["streamlit", "run", "app.py"] |