sashtech commited on
Commit
36b5c39
·
verified ·
1 Parent(s): af6cff5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -7
Dockerfile CHANGED
@@ -4,20 +4,28 @@ FROM python:3.10
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Copy the current directory contents into the container at /app
8
- COPY . /app
9
-
10
- # Install system dependencies (if needed, like Java for language-tool-python)
11
  RUN apt-get update && apt-get install -y \
12
  default-jre \
 
 
 
 
 
 
 
 
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Install any needed packages specified in requirements.txt
 
 
 
16
  COPY requirements.txt /app/requirements.txt
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # Make port 7860 available to the world outside this container (default Gradio port)
20
  EXPOSE 7860
21
 
22
- # Run Gradio app (replace 'app.py' with your actual app script name)
23
  CMD ["python", "app.py"]
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Install system dependencies, including Java (needed for language-tool-python)
 
 
 
8
  RUN apt-get update && apt-get install -y \
9
  default-jre \
10
+ git \
11
+ git-lfs \
12
+ ffmpeg \
13
+ libsm6 \
14
+ libxext6 \
15
+ cmake \
16
+ rsync \
17
+ libgl1-mesa-glx \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ # Copy the current directory contents into the container at /app
21
+ COPY . /app
22
+
23
+ # Install Python dependencies
24
  COPY requirements.txt /app/requirements.txt
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
+ # Make port 7860 available to the world outside this container (Gradio default port)
28
  EXPOSE 7860
29
 
30
+ # Run the application
31
  CMD ["python", "app.py"]