-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·59 lines (49 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
executable file
·59 lines (49 loc) · 1.27 KB
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
FROM pytorch/pytorch:latest
ENV DEBIAN_FRONTEND=noninteractive
# fix libtiff (imei doesn't install the correct version)
RUN apt-get update && apt-get purge -y \
libtiff-dev libtiff-tools && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
build-essential \
wget \
autoconf \
automake \
libtool \
pkg-config \
libjpeg-dev \
libpng-dev \
zlib1g-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN wget https://download.osgeo.org/libtiff/tiff-4.7.0.tar.gz && \
tar -xzf tiff-4.7.0.tar.gz && \
cd tiff-4.7.0 && \
./configure && \
make -j"$(nproc)" && \
make install && \
ldconfig
RUN rm -rf /tmp/tiff-4.7.0*
# this is missing with imei
RUN apt-get update && apt-get install -y \
libopenh264-6 \
&& rm -rf /var/lib/apt/lists/*
# run imagemagick easy installer
RUN t=$(mktemp) && \
wget 'https://dist.1-2.dev/imei.sh' -qO "$t" && \
bash "$t" && \
rm "$t"
RUN identify -version
RUN apt-get update && apt-get install -y \
attr \
file \
git \
tzdata \
&& apt-get clean
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY packages/home_index_read .
ENTRYPOINT ["python3", "/app/main.py"]