-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (52 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
59 lines (52 loc) · 1.29 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 alpine:3.8
ENV CRON false
ENV WORKER false
RUN apk add --no-cache \
curl \
wget \
git \
nano \
supervisor \
nodejs \
nodejs-npm \
nginx \
$( \
apk search -qe --no-cache 'php7*' \
| sed -e 's/[^ ]*apache[^ ]*//ig' \
| sed -e 's/[^ ]*dev[^ ]*//ig' \
| sed -e 's/[^ ]*pear[^ ]*//ig' \
| sed -e 's/[^ ]*xdebug[^ ]*//ig' \
| sed -e 's/[^ ]*doc[^ ]*//ig' \
| sed -e 's/[^ ]*mustache[^ ]*//ig' \
| sed -e 's/[^ ]*kafka[^ ]*//ig' \
| sed -e 's/[^ ]*solr[^ ]*//ig' \
| sed -e 's/[^ ]*protobuf[^ ]*//ig' \
| sed -e 's/[^ ]*couchbase[^ ]*//ig' \
| sed -e 's/[^ ]*mongo[^ ]*//ig' \
| sed -e 's/[^ ]*pgsql[^ ]*//ig' \
| cat \
) \
composer \
libpng-dev \
nasm \
autoconf \
optipng \
gifsicle \
make \
automake \
g++ \
libtool
ADD init.sh /init.sh
ADD ./supervisord /supervisord
ADD ./nginx /nginx
ADD ./php /php
RUN chmod 755 /init.sh && \
chmod 755 /nginx/nginx.sh && \
chmod 755 /php/php.sh && \
chmod 755 /supervisord/supervisord.sh
RUN /nginx/nginx.sh
RUN /php/php.sh
RUN /supervisord/supervisord.sh
EXPOSE 80 443 9000
WORKDIR /var/www/html
CMD [ "/init.sh" ]