Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -1,16 +1,15 @@
|
|
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-
|
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-
|
14 |
ENV PATH=$JAVA_HOME/bin:$PATH
|
15 |
|
16 |
# Copy your application code
|
|
|
|
|
1 |
# Use official python image
|
2 |
FROM python:3.10
|
3 |
|
4 |
# Install system dependencies (for H2O & Java)
|
5 |
+
RUN apt-get update && apt-get install -y openjdk-17-jre-headless
|
6 |
|
7 |
# Install Python dependencies
|
8 |
COPY requirements.txt requirements.txt
|
9 |
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
|
11 |
# Set JAVA_HOME
|
12 |
+
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
|
13 |
ENV PATH=$JAVA_HOME/bin:$PATH
|
14 |
|
15 |
# Copy your application code
|