gopichandra commited on
Commit
f37dfd4
·
verified ·
1 Parent(s): b5b50ff

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +25 -8
dockerfile CHANGED
@@ -1,18 +1,35 @@
1
- # Start from the official Hugging Face Spaces base image
2
- FROM huggingface/transformers-pytorch-cpu:latest
3
 
4
- # Install libssl1.1
5
  RUN apt-get update && \
6
- apt-get install -y libssl1.1 libssl-dev
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
- # Install PaddlePaddle and other dependencies
9
- RUN pip install paddlepaddle==2.5.0 paddleocr==2.6.1 gradio==3.34.0 pandas fuzzywuzzy simple-salesforce
 
10
 
11
- # Set up working directory and copy your app files
12
  WORKDIR /app
 
 
13
  COPY . /app
14
 
15
- # Expose the port
16
  EXPOSE 7860
17
 
18
  # Run the Gradio app
 
1
+ # Use the official Python 3.10 image
2
+ FROM python:3.10
3
 
4
+ # Install system dependencies, including OpenSSL 1.1 and others
5
  RUN apt-get update && \
6
+ apt-get install -y \
7
+ libssl1.1 \
8
+ libssl-dev \
9
+ git \
10
+ git-lfs \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ cmake \
15
+ rsync \
16
+ libgl1-mesa-glx \
17
+ curl \
18
+ nodejs \
19
+ && rm -rf /var/lib/apt/lists/* \
20
+ && git lfs install
21
 
22
+ # Install necessary Python packages from requirements.txt
23
+ COPY requirements.txt /tmp/requirements.txt
24
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
25
 
26
+ # Set the working directory to /app
27
  WORKDIR /app
28
+
29
+ # Copy the rest of the application files into the container
30
  COPY . /app
31
 
32
+ # Expose the port the app will run on
33
  EXPOSE 7860
34
 
35
  # Run the Gradio app