random_matrix_ESD / Dockerfile
euler314's picture
Update Dockerfile
6102449 verified
raw
history blame
596 Bytes
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"]