File size: 394 Bytes
5e8068c
1867378
5e8068c
 
1867378
5e8068c
1867378
 
5e8068c
 
 
 
 
 
 
 
 
1867378
f0d61b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM openjdk:17-jdk-slim

# Set the working directory
WORKDIR /app

# Copy all project files
COPY . /app

# Create a 'lib' folder and copy the JSON jar file
RUN mkdir -p /app/lib
COPY lib/json-20210307.jar /app/lib/

# Install required Python dependencies
RUN pip install gradio

# Run Java with classpath including the JAR file
CMD ["java", "-cp", "/app/lib/json-20210307.jar:/app", "Main"]