abdullahmubeen10 commited on
Commit
54bad84
·
verified ·
1 Parent(s): 58ca653

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Install Java for Spark NLP
5
- RUN apt-get update && apt-get install -y openjdk-8-jdk && apt-get clean
 
 
 
 
 
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"