justin2341 commited on
Commit
2094d36
·
verified ·
1 Parent(s): 75728f3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +49 -49
Dockerfile CHANGED
@@ -1,50 +1,50 @@
1
- FROM ubuntu:20.04
2
-
3
- # Install system dependencies, including Python and pip
4
- RUN apt-get update -y && \
5
- apt-get install -y --no-install-recommends \
6
- python3.8 \
7
- python3-pip \
8
- libjpeg8 \
9
- libwebp6 \
10
- libpng16-16 \
11
- libtbb2 \
12
- libtiff5 \
13
- libtbb-dev \
14
- unzip \
15
- libopenexr-dev \
16
- libgl1-mesa-glx \
17
- libglib2.0-0 \
18
- && apt-get clean \
19
- && rm -rf /var/lib/apt/lists/*
20
-
21
- # Ensure pip is installed
22
- RUN python3.8 -m pip install --upgrade pip
23
-
24
- # Set up working directory
25
- RUN mkdir -p /root/kby-ai-palmprint
26
- WORKDIR /root/kby-ai-palmprint
27
-
28
- # Copy shared libraries and application files
29
- COPY ./libhand.so /usr/local/lib/
30
- COPY ./libopencv.zip .
31
- RUN unzip libopencv.zip
32
- RUN cp -f libopencv/* /usr/local/lib/
33
- RUN ldconfig
34
-
35
- # Copy Python and application files
36
- COPY ./handtool-0.2.1-py3-none-any.whl .
37
- COPY ./app.py .
38
- COPY ./roi.py .
39
- COPY ./requirements.txt .
40
- COPY ./run.sh .
41
- COPY ./img ./img
42
-
43
- # Install Python dependencies
44
- RUN pip3 install --no-cache-dir -r requirements.txt
45
- RUN chmod +x ./run.sh
46
- # Set up entrypoint
47
- CMD ["/root/kby-ai-palmprint/run.sh"]
48
-
49
- # Expose ports
50
  EXPOSE 8080 9000
 
1
+ FROM ubuntu:20.04
2
+
3
+ # Install system dependencies, including Python and pip
4
+ RUN apt-get update -y && \
5
+ apt-get install -y --no-install-recommends \
6
+ python3.8 \
7
+ python3-pip \
8
+ libjpeg8 \
9
+ libwebp6 \
10
+ libpng16-16 \
11
+ libtbb2 \
12
+ libtiff5 \
13
+ libtbb-dev \
14
+ unzip \
15
+ libopenexr-dev \
16
+ libgl1-mesa-glx \
17
+ libglib2.0-0 \
18
+ && apt-get clean \
19
+ && rm -rf /var/lib/apt/lists/*
20
+
21
+ # Ensure pip is installed
22
+ RUN python3.8 -m pip install --upgrade pip
23
+
24
+ # Set up working directory
25
+ RUN mkdir -p /root/kby-ai-palmprint
26
+ WORKDIR /root/kby-ai-palmprint
27
+
28
+ # Copy shared libraries and application files
29
+ COPY ./libhand.so /usr/local/lib/
30
+ COPY ./libopencv.zip .
31
+ RUN unzip libopencv.zip
32
+ RUN cp -f libopencv/* /usr/local/lib/
33
+ RUN ldconfig
34
+
35
+ # Copy Python and application files
36
+ COPY ./handtool-0.2.1-py3-none-any.whl .
37
+ COPY ./app.py .
38
+ COPY ./roi.py .
39
+ COPY ./requirements.txt .
40
+ COPY ./run.sh .
41
+ COPY ./palmprint_examples ./palmprint_examples
42
+
43
+ # Install Python dependencies
44
+ RUN pip3 install --no-cache-dir -r requirements.txt
45
+ RUN chmod +x ./run.sh
46
+ # Set up entrypoint
47
+ CMD ["/root/kby-ai-palmprint/run.sh"]
48
+
49
+ # Expose ports
50
  EXPOSE 8080 9000