Upload Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# Use official python image
|
3 |
+
FROM python:3.10
|
4 |
+
|
5 |
+
# Install system dependencies (for H2O & Java)
|
6 |
+
RUN apt-get update && apt-get install -y openjdk-11-jre-headless
|
7 |
+
|
8 |
+
# Install Python dependencies
|
9 |
+
COPY requirements.txt requirements.txt
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Set JAVA_HOME
|
13 |
+
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
14 |
+
ENV PATH=$JAVA_HOME/bin:$PATH
|
15 |
+
|
16 |
+
# Copy your application code
|
17 |
+
COPY . /app
|
18 |
+
WORKDIR /app
|
19 |
+
|
20 |
+
# Run Streamlit app
|
21 |
+
CMD ["streamlit", "run", "app.py"]
|