-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
50 lines (43 loc) · 916 Bytes
/
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
FROM alpine
MAINTAINER Paul Pham <[email protected]>
ENV \
_image=aquaron/anf \
_etc=/etc/nginx \
_root=/usr/share/nginx \
_log=/var/log/nginx \
_sock=/tmp/cgi.sock \
PERL5LIB=/usr/share/nginx/lib
COPY data /data
RUN apk add --no-cache \
bash \
nginx \
fcgiwrap \
perl \
make \
curl \
wget \
gcc \
g++ \
perl-dev \
mysql-dev \
&& ln -s /usr/bin/perl /usr/local/bin/perl \
&& 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 \
&& rm -rf /root/.cpanm \
&& mv /data/misc/bash-prompt ~/.profile \
&& mv /data/bin/* /usr/bin \
&& apk del --no-cache g++ gcc make curl wget perl-dev
ONBUILD RUN apk add --no-cache openssl g++ gcc make perl-dev expat-dev
VOLUME $_root $_log $_etc
ENTRYPOINT [ "runme.sh" ]
CMD [ "daemon" ]