File size: 436 Bytes
cddf0f9
9adb61e
6c24a02
 
9adb61e
c299a01
80bccb1
73d9c44
c299a01
 
cddf0f9
6c24a02
 
2758880
c299a01
 
cddf0f9
c299a01
 
cddf0f9
c299a01
cddf0f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim

# Install Java
RUN apt-get update && apt-get install -y default-jdk

# Create working directory
WORKDIR /app

# Copy all project files
COPY . /app

# Unzip the JAR file if needed
RUN unzip /app/lib/json-20210307.zip -d /app/lib/ || true

# Add JAR file path to CLASSPATH
ENV CLASSPATH="/app/lib/json-20210307.jar:/app"

# Install Gradio
RUN pip install gradio

# Run the Gradio interface
CMD ["python", "app.py"]