forked from skorokithakis/docker-fgallery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
57 lines (45 loc) · 1.21 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
FROM phusion/baseimage:0.9.16
ENV DEBIAN_FRONTEND noninteractive
# Set correct environment variables
ENV HOME /root
#Expose Volumes
VOLUME ["/opt/fgallery/gallery/"]
WORKDIR /opt/fgallery/
# Expose Port
EXPOSE 8000
# Configure user nobody to match unRAID's settings
RUN usermod -u 99 nobody && \
usermod -g 100 nobody && \
usermod -d /fgallery nobody && \
chown -R nobody:users /home && \
# chfn workaround - Known issue within Dockers
ln -s -f /bin/true /usr/bin/chfn && \
# Disable SSH
rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh && \
# Install fgallery
apt-get -y update -q && \
apt-get install \
imagemagick \
exiftran \
zip \
liblcms2-utils \
libimage-exiftool-perl \
libjson-perl \
libjson-xs-perl \
jpegoptim \
pngcrush \
p7zip \
python-opencv \
libopencv-dev \
unp \
unzip \
fish \
wget
python-numpy -y && \
wget -P /tmp --no-check-certificate http://www.thregr.org/~wavexx/software/fgallery/releases/fgallery-LATEST.zip && \
cd /opt && \
unzip /tmp/fgallery-LATEST.zip && \
mv fgallery-* fgallery && \
wget --no-check-certificate https://github.com/wavexx/facedetect/archive/master.zip && \
unzip -p master.zip facedetect-master/facedetect > /usr/bin/facedetect && \
chmod +x /usr/bin/facedetect