FROM condaforge/miniforge3:latest WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ curl \ ca-certificates \ libstdc++6 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Copy environment file COPY environment.yml . # Create conda environment and install dependencies RUN conda env create -f environment.yml -n deepromic && \ conda run -n deepromic conda install -y -c conda-forge libstdcxx-ng=13.2.0 && \ conda run -n deepromic pip install --no-cache-dir streamlit==1.38.0 && \ conda clean -afy # Activate environment SHELL ["bash", "-c"] RUN echo "source activate deepromic" > ~/.bashrc ENV PATH /opt/conda/envs/deepromic/bin:$PATH # Copy project files COPY . . # Make profeatx executable RUN chmod +x profeatx # Expose Streamlit port EXPOSE 7860 # Healthcheck HEALTHCHECK --interval=30s --timeout=30s --start-period=120s --retries=3 \ CMD curl -f http://localhost:7860/_stcore/health || exit 1 # Run Streamlit with XSRF disabled CMD ["streamlit", "run", "app.py", \ "--server.port=7860", \ "--server.address=0.0.0.0", \ "--server.enableXsrfProtection=false", \ "--server.headless=true"]