# Use official python image FROM python:3.10 # Install system dependencies (for H2O & Java) RUN apt-get update && apt-get install -y openjdk-17-jre-headless # Install Python dependencies COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Set JAVA_HOME ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 ENV PATH=$JAVA_HOME/bin:$PATH # Copy your application code COPY . /app WORKDIR /app # Expose the port Streamlit runs on EXPOSE 7860 # Run Streamlit app CMD streamlit run app.py --server.port 7860 --server.address 0.0.0.0