anithai commited on
Commit
1867378
·
verified ·
1 Parent(s): da5ea0c

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
9
+ WORKDIR /app
10
+
11
+ # Compile Java Code
12
+ RUN javac -cp ".:/app/json-20210307.jar" Main.java
13
+
14
+ # Run Gradio app
15
+ CMD ["python3", "app.py"]