anithai commited on
Commit
894caec
·
verified ·
1 Parent(s): 14f5355

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,8 +1,10 @@
1
- FROM openjdk:11
2
 
3
- # Install Gradio and dependencies
4
- RUN apt-get update -y && apt-get install -y python3 python3-pip
5
- RUN pip3 install gradio
 
 
6
 
7
  # Copy project files
8
  COPY . /app
@@ -13,3 +15,4 @@ RUN javac -cp ".:/app/json-20210307.jar" Main.java
13
 
14
  # Run Gradio app
15
  CMD ["python3", "app.py"]
 
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install Java
4
+ RUN apt-get update && apt-get install -y openjdk-11-jdk
5
+
6
+ # Install Gradio
7
+ RUN pip install gradio
8
 
9
  # Copy project files
10
  COPY . /app
 
15
 
16
  # Run Gradio app
17
  CMD ["python3", "app.py"]
18
+