anithai commited on
Commit
2758880
·
verified ·
1 Parent(s): 16352c5

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM python:3.10-slim
2
 
3
- # Install Java
4
- RUN apt-get update && apt-get install -y default-jdk
5
 
6
  # Create working directory
7
  WORKDIR /app
@@ -9,6 +9,9 @@ WORKDIR /app
9
  # Copy all project files
10
  COPY . /app
11
 
 
 
 
12
  # Add JAR file path to CLASSPATH
13
  ENV CLASSPATH="/app/lib/json-20210307.jar:/app"
14
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Install Java and unzip utility
4
+ RUN apt-get update && apt-get install -y openjdk-17-jdk unzip
5
 
6
  # Create working directory
7
  WORKDIR /app
 
9
  # Copy all project files
10
  COPY . /app
11
 
12
+ # Unzip the JAR file if it's zipped
13
+ RUN unzip /app/lib/json-20210307.zip -d /app/lib/
14
+
15
  # Add JAR file path to CLASSPATH
16
  ENV CLASSPATH="/app/lib/json-20210307.jar:/app"
17