-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.debian
53 lines (46 loc) · 1.22 KB
/
Dockerfile.debian
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
FROM debian:stretch-slim
MAINTAINER Paul Pham <docker@aquaron.com>
ENV \
_image=aquaron/anf:debian \
_etc=/etc/nginx \
_root=/usr/share/nginx \
_log=/var/log/nginx \
_sock=/tmp/cgi.sock \
PERL5LIB=/usr/share/nginx/lib:.
COPY data /data
RUN apt-get update && apt-get install -y \
nginx \
perl \
fcgiwrap \
make \
curl \
wget \
gcc \
g++ \
libmariadbclient-dev \
&& adduser --system --no-create-home --disabled-login --disabled-password --group nginx \
&& mv /data/misc/bash-prompt ~/.bashrc \
&& echo '#!/bin/bash\n' "$(tail -n +2 /data/bin/runme.sh)" > /data/bin/runme.sh \
&& mv /data/bin/* /usr/bin \
&& ln -s /usr/bin/perl /usr/local/bin/perl \
&& ln -s /usr/sbin/fcgiwrap /usr/bin/fcgiwrap \
&& ln -s /sbin/killall5 /sbin/killall \
&& curl -sL http://cpanmin.us -o /usr/bin/cpanm; chmod +x /usr/bin/cpanm \
&& cpanm -n \
CGI \
JSON \
JSON::XS \
DBD::mysql \
Apache::Session::MySQL \
Redis \
Crypt::ScryptKDF \
Crypt::CBC \
File::Slurp \
CSS::Inliner \
&& apt-get purge -qy g++ gcc make curl wget \
&& apt-get autoremove -qy \
&& rm -rf /root/.cpanm /var/lib/apt/lists/*
ONBUILD RUN apt-get update && apt-get install -y openssl g++ gcc make
VOLUME $_root $_log $_etc
ENTRYPOINT [ "runme.sh" ]
CMD [ "daemon" ]