anithai commited on
Commit
e3a4d9e
·
verified ·
1 Parent(s): 73d9c44

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- # Use OpenJDK for Java Support
2
  FROM openjdk:17-jdk-slim
3
 
4
  # Set the working directory
@@ -7,17 +7,17 @@ WORKDIR /app
7
  # Copy all project files
8
  COPY . /app
9
 
10
- # Extract the jar file inside the lib folder
11
- RUN unzip /app/lib.zip -d /app/lib
12
 
13
- # Install Gradio and dependencies
14
  RUN pip install gradio
15
 
16
- # Expose port for Gradio
17
  EXPOSE 7860
18
 
19
- # Ensure Java is accessible
20
- ENV PATH=$PATH:/usr/bin/java
21
 
22
- # Run the Gradio interface
23
  CMD ["python", "app.py"]
 
1
+ # Use OpenJDK for Java support
2
  FROM openjdk:17-jdk-slim
3
 
4
  # Set the working directory
 
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"]