-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·66 lines (49 loc) · 1.14 KB
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#Name: Dockerfile
#Version: 1.0
#Summary: Docker recipe file for smart pipeline
#Author: suxing liu
#Author-email: suxingliu@gmail.com
#Created: 2022-10-29
#USAGE:
#docker build -t plant_test -f Dockerfile .
#docker run -v /path to test image:/images -it plant_test
#cd /opt/smart/
#python3 /opt/smart/core/trait_extract_parallel_demo.py -p /images/ -ft jpg -min 20000 -md 35
FROM ubuntu:22.04
LABEL maintainer='Suxing Liu, Wes Bonelli'
COPY ./ /opt/smart
RUN apt-get update && apt-get upgrade -y
RUN DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" apt-get install -y \
build-essential \
python3-setuptools \
python3-pip \
python3 \
libgl1-mesa-glx \
libsm6 \
libxext6 \
cmake-gui \
nano \
libdmtx0b
RUN python3 -m pip install --upgrade pip
RUN pip3 install numpy \
Pillow \
scipy \
scikit-image==0.19.3 \
scikit-learn\
matplotlib \
pandas \
pytest \
opencv-python-headless \
openpyxl \
imutils \
numba \
skan \
tabulate \
pylibdmtx \
psutil \
natsort \
pathlib \
kmeans1d \
rembg
RUN chmod -R a+rwx /opt/smart/
WORKDIR /opt/smart/