anithai commited on
Commit
5243dae
·
verified ·
1 Parent(s): 36080d1

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,18 +1,17 @@
1
- FROM python:3.10-slim
2
 
3
- # Install required dependencies and Java
4
  RUN apt-get update && \
5
  apt-get install -y --no-install-recommends \
6
- default-jdk \
7
- && apt-get clean && \
 
8
  rm -rf /var/lib/apt/lists/*
9
 
10
- # Install required Python packages
11
- RUN pip install gradio
12
-
13
- # Copy all project files into the container
14
  COPY . /app
15
  WORKDIR /app
16
 
17
  # Run Gradio app
18
- CMD ["python", "app.py"]
 
 
1
+ FROM openjdk:11-jdk-slim
2
 
3
+ # Install Python and Gradio
4
  RUN apt-get update && \
5
  apt-get install -y --no-install-recommends \
6
+ python3 python3-pip && \
7
+ pip3 install gradio && \
8
+ apt-get clean && \
9
  rm -rf /var/lib/apt/lists/*
10
 
11
+ # Copy project files
 
 
 
12
  COPY . /app
13
  WORKDIR /app
14
 
15
  # Run Gradio app
16
+ CMD ["python3", "app.py"]
17
+