File size: 568 Bytes
916cd0d
 
 
 
878d137
916cd0d
 
 
 
 
 
878d137
916cd0d
 
 
 
 
 
a8d44c1
 
 
916cd0d
a8d44c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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