Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +10 -12
Dockerfile
CHANGED
|
@@ -1,25 +1,23 @@
|
|
| 1 |
-
# Use the
|
| 2 |
FROM ubuntu:18.04
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Update package lists and install git
|
| 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 |
-
RUN apt-get update && apt-get install -y python3 python3-dev python3-pip
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
CMD 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 ["
|
|
|
|
| 1 |
+
# Use the Ubuntu 18.04 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, python3, and pip3
|
| 8 |
+
RUN apt-get update && apt-get install -y git python3 python3-dev python3-pip && 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 Python dependencies
|
| 14 |
+
RUN pip3 install --no-cache-dir tensorflow numpy opencv-python-headless matplotlib gradio
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Expose the port the app runs on
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
+
# Copy the current directory contents into the container
|
| 20 |
+
COPY . /app
|
| 21 |
+
|
| 22 |
# Run the app.py script
|
| 23 |
+
CMD ["python3", "app.py"]
|