random_matrix_ESD / Dockerfile
euler314's picture
Update Dockerfile
9264e00 verified
raw
history blame
495 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
python3-dev \
libeigen3-dev \
python3-pybind11 \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY requirements.txt cubic_cpp.cpp setup.py app.py ./
# Install Python requirements
RUN pip install --no-cache-dir -r requirements.txt
# Build the C++ extension
RUN pip install -e .
# Run the application
CMD ["streamlit", "run", "app.py"]