File size: 1,115 Bytes
ccfc07b
 
01e6ac1
d356344
 
01e6ac1
a14d9e4
 
01e6ac1
a14d9e4
d356344
54c018e
ef70333
 
 
415af1f
 
 
7f20d94
f09430a
 
 
 
 
51de5ab
7f20d94
0c0891c
d356344
 
 
 
a14d9e4
0c0891c
a14d9e4
2717510
a14d9e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Use the Ubuntu 20.04 image as a parent image
FROM ubuntu:20.04

# Set the working directory
WORKDIR /app

# Update package lists and install git, python3, and pip3
RUN apt-get update && apt-get install -y git python3 python3-dev python3-pip && apt-get clean && rm -rf /var/lib/apt/lists/*

# Clone the repository
RUN git clone https://github.com/ankitVP77/Blind-Motion-Deblurring-for-Legible-License-Plates-using-Deep-Learning.git /app

# Install scikit-build before other dependencies to resolve opencv-python-headless installation issue
RUN pip3 install --no-cache-dir scikit-build

# Set MPLCONFIGDIR environment variable to a writable directory
ENV MPLCONFIGDIR=/tmp/.config/matplotlib

# Install Python dependencies with specific versions
RUN pip3 install --no-cache-dir \
    tensorflow==2.13.1 \
    numpy==1.24.3 \
    opencv-python-headless \
    matplotlib \
    typing-extensions==4.6.0 \
    gradio==3.0.12 \
    python-dotenv>=0.13

# Expose the port the app runs on
EXPOSE 7860

# Copy the current directory contents into the container
COPY . /app

# Run the app.py script
CMD ["python3", "app.py"]