Spaces:
Sleeping
Sleeping
abdullahmubeen10
commited on
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
# Use the official Python image as a base
|
2 |
FROM python:3.8-slim
|
3 |
|
4 |
-
#
|
5 |
-
RUN apt-get update &&
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Set Java environment variables
|
8 |
ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
|
|
|
1 |
# Use the official Python image as a base
|
2 |
FROM python:3.8-slim
|
3 |
|
4 |
+
# Add repository for OpenJDK 8 and install it
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y software-properties-common && \
|
7 |
+
add-apt-repository ppa:openjdk-r/ppa && \
|
8 |
+
apt-get update && \
|
9 |
+
apt-get install -y openjdk-8-jdk && \
|
10 |
+
apt-get clean
|
11 |
|
12 |
# Set Java environment variables
|
13 |
ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
|