-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (41 loc) · 1.11 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
FROM ubuntu:23.10
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get --no-install-recommends install -y \
# libraw for imagemagick
libraw-bin \
# procps
procps \
# and lastly, fonts
fontconfig fonts-liberation \
# GDI+ and ONNX
libgomp1 apt-utils libgdiplus libc6-dev \
# ufraw - for ImageMagick Sony conversions
dcraw \
&& rm -rf /var/lib/apt/lists/*
# init the font caches
RUN fc-cache -f -v
WORKDIR /home
COPY [ \
"make_imagemagick.sh", \
"make_exiftool.sh", \
"cleanup.sh", \
"validate.sh", \
"/home/" \
]
RUN set -eux \
&& chmod +x ./make_imagemagick.sh \
&& chmod +x ./make_exiftool.sh \
&& chmod +x ./cleanup.sh \
&& chmod +x ./validate.sh \
&& /home/make_imagemagick.sh \
&& /home/make_exiftool.sh \
&& /home/cleanup.sh \
&& /home/validate.sh
# Need sudo for the iNotify count increase
# RUN set -ex && apt-get install -y sudo
# Copy the entrypoint script
COPY ./entrypoint.sh /
RUN ["chmod", "+x", "/entrypoint.sh"]
ADD VERSION .
ENTRYPOINT ["sh","/entrypoint.sh"]