File size: 771 Bytes
363cda9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Python slim base
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    libpq-dev gcc && \
    rm -rf /var/lib/apt/lists/*

# Copy only requirements first (for build caching)
COPY ../requirements/base.txt ./requirements/base.txt
COPY ../requirements/db.txt ./requirements/db.txt
COPY ../requirements/cv_ui.txt ./requirements/cv_ui.txt
# Install Streamlit + base deps
RUN pip install --no-cache-dir -r requirements/cv_ui.txt

# Copy project source code
COPY ../src ./src

ENV PYTHONPATH=/app


# Expose Streamlit port
EXPOSE 8501

# Default command to run Streamlit app
CMD ["streamlit", "run", "src/frontend/streamlit/cv_ui/app.py", "--server.port=8501", "--server.address=0.0.0.0"]