SoDa12321 commited on
Commit
77a7112
·
verified ·
1 Parent(s): 48e3983

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,26 +1,26 @@
1
  FROM huggingface/autotrain-advanced:latest
2
  CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1
3
-
4
  # Use the Hugging Face Docker image as a parent image
5
- FROM huggingface/autotrain-advanced:latest
6
-
7
- # Install Gradio
8
- RUN pip install gradio
9
 
10
  # Set the working directory
11
  WORKDIR /app
12
 
13
- # Install git
14
- RUN apt-get update && apt-get install -y git
15
 
16
  # Clone the repository
17
  RUN git clone https://github.com/ankitVP77/Blind-Motion-Deblurring-for-Legible-License-Plates-using-Deep-Learning.git /app
18
 
19
  # Install dependencies
20
- RUN pip install --no-cache-dir tensorflow numpy opencv-python-headless matplotlib
 
 
 
21
 
22
  # Expose the port the app runs on
23
  EXPOSE 7860
24
 
25
- # Command to launch Gradio interface
26
  CMD ["python", "app.py"]
 
 
1
  FROM huggingface/autotrain-advanced:latest
2
  CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1
 
3
  # Use the Hugging Face Docker image as a parent image
4
+ FROM ubuntu:18.04
 
 
 
5
 
6
  # Set the working directory
7
  WORKDIR /app
8
 
9
+ # Update package lists and install git with appropriate permissions
10
+ RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/*
11
 
12
  # Clone the repository
13
  RUN git clone https://github.com/ankitVP77/Blind-Motion-Deblurring-for-Legible-License-Plates-using-Deep-Learning.git /app
14
 
15
  # Install dependencies
16
+ RUN pip install --no-cache-dir tensorflow numpy opencv-python-headless matplotlib gradio
17
+
18
+ # Copy the app files to the working directory
19
+ COPY . /app
20
 
21
  # Expose the port the app runs on
22
  EXPOSE 7860
23
 
24
+ # Run the app.py script
25
  CMD ["python", "app.py"]
26
+