File size: 596 Bytes
ef64d6b
 
 
 
6102449
ef64d6b
 
6102449
ef64d6b
 
6102449
 
ef64d6b
 
 
 
6102449
 
ef64d6b
6102449
ef64d6b
 
6102449
ef64d6b
 
 
6102449
 
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
FROM python:3.9-slim

WORKDIR /app

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

# Copy all necessary files
COPY app.py cubic_cpp.cpp setup.py requirements.txt ./

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Build C++ extension
RUN pip install -e .

# Expose Streamlit port
EXPOSE 8501

# Set Streamlit environment variables
ENV STREAMLIT_SERVER_PORT=8501
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0

# Run the application
CMD ["streamlit", "run", "app.py"]