anithai commited on
Commit
cddf0f9
·
verified ·
1 Parent(s): 47dd35c

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -10
Dockerfile CHANGED
@@ -1,14 +1,18 @@
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"]
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install Java
4
+ RUN apt-get update && apt-get install -y openjdk-17-jdk unzip
5
 
 
 
 
 
 
6
  WORKDIR /app
7
 
8
+ # Copy all necessary files
9
+ COPY . .
10
+
11
+ # Extract the lib.zip file
12
+ RUN unzip lib.zip -d lib
13
+
14
+ # Install Python dependencies
15
+ RUN pip install -r requirements.txt
16
+
17
+ # Command to run the app
18
+ CMD ["python", "app.py"]