anithai commited on
Commit
80bccb1
·
verified ·
1 Parent(s): f8422eb

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -18
Dockerfile CHANGED
@@ -1,23 +1,14 @@
1
- # Use OpenJDK for Java support
2
- FROM openjdk:17-jdk-slim
3
 
4
- # Set the working directory
5
- WORKDIR /app
6
-
7
- # Copy all project files
8
- COPY . /app
9
-
10
- # Extract jar file if needed
11
- RUN unzip /app/lib.zip -d /app/lib || true
12
 
13
  # Install Gradio
14
- RUN pip install gradio
15
 
16
- # Expose Gradio’s port
17
- EXPOSE 7860
18
-
19
- # Ensure Java is available in PATH
20
- ENV PATH=$PATH:/usr/bin
21
 
22
- # Run the Gradio app
23
- CMD ["python", "app.py"]
 
1
+ FROM openjdk:21-jdk-slim
 
2
 
3
+ # Install Python and dependencies
4
+ RUN apt-get update && apt-get install -y python3 python3-pip
 
 
 
 
 
 
5
 
6
  # Install Gradio
7
+ RUN pip3 install gradio
8
 
9
+ # Copy project files
10
+ COPY . /app
11
+ WORKDIR /app
 
 
12
 
13
+ # Run the app
14
+ CMD ["python3", "app.py"]