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