-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
8.2.Dockerfile
80 lines (70 loc) · 2.42 KB
/
8.2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM adhocore/phpfpm:8.2
MAINTAINER Jitendra Adhikari <jiten.adhikary@gmail.com>
ENV \
ADMINEREVO_VERSION=4.8.4 \
ES_HOME=/usr/share/java/elasticsearch \
PATH=/usr/share/java/elasticsearch/bin:$PATH
RUN \
# prepare
echo @legacy https://dl-cdn.alpinelinux.org/alpine/v3.12/community >> /etc/apk/repositories \
# install
&& apk add -U --no-cache libssl1.1 \
beanstalkd \
elasticsearch@legacy \
memcached \
mysql mysql-client \
nano \
nginx \
postgresql \
# rabbitmq-server@testing \
redis \
supervisor \
poppler-utils \
# elastic setup
&& rm -rf $ES_HOME/plugins \
&& mkdir -p $ES_HOME/tmp $ES_HOME/data $ES_HOME/logs $ES_HOME/plugins $ES_HOME/config/scripts \
&& mv /etc/elasticsearch/* $ES_HOME/config/ \
# elastico user
&& deluser elastico && addgroup -S elastico \
&& adduser -D -S -h /usr/share/java/elasticsearch -s /bin/ash -G elastico elastico \
&& chown elastico:elastico -R $ES_HOME \
&& { sed -ie "s/^-XX:/8-13:-XX:/" /usr/share/java/elasticsearch/config/jvm.options || true; } \
# rabbitmq
# && apk add -U rabbitmq-server@testing \
# && apk add -U rabbitmq-server \
# adminerevo
&& mkdir -p /var/www/adminerevo \
&& curl -sSLo /var/www/adminerevo/index.php \
"https://github.com/adminerevo/adminerevo/releases/download/v$ADMINEREVO_VERSION/adminer-$ADMINEREVO_VERSION.php" \
# cleanup
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* /usr/share/doc/* /usr/share/man/*
# nginx config
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
# mailcatcher
COPY --from=tophfr/mailcatcher /usr/lib/libruby.so.2.5 /usr/lib/libruby.so.2.5
COPY --from=tophfr/mailcatcher /usr/lib/ruby/ /usr/lib/ruby/
COPY --from=tophfr/mailcatcher /usr/bin/ruby /usr/bin/mailcatcher /usr/bin/
# resource
COPY php/index.php /var/www/html/index.php
# supervisor config
COPY \
beanstalkd/beanstalkd.ini \
elasticsearch/elasticsearch.ini \
mailcatcher/mailcatcher.ini \
memcached/memcached.ini \
mysql/mysql.ini \
nginx/nginx.ini \
pgsql/pgsql.ini \
php/php-fpm.ini \
# rabbitmq/rabbitmq.ini \
redis/redis.ini \
/etc/supervisor.d/
# entrypoint
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# ports
EXPOSE 11300 11211 9300 9200 9000 6379 5432 3306 88 80 25
# commands
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["supervisord", "-n", "-j", "/supervisord.pid"]