forked from islamic-network/api.alquran.cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 746 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
FROM islamicnetwork/php73:latest
# Copy files
RUN cd ../ && rm -rf /var/www/html
COPY . /var/www/
COPY /etc/apache2/mods-enabled/mpm_prefork.conf /etc/apache2/mods-enabled/mpm_prefork.conf
# Run Composer
RUN cd /var/www && composer install --no-dev
RUN chown -R www-data:www-data /var/www/
ENV MYSQL_USER "someUser"
ENV MYSQL_PASSWORD "somePassword"
ENV MYSQL_DATABASE "someDb"
ENV MYSQL_HOST_1 "localhost"
ENV MYSQL_HOST_2 "localhost"
ENV MYSQL_HOST_3 "localhost"
# 0 = disabled. 1 = enabled
ENV WAF_PROXY_MODE "0"
ENV WAF_KEY "someKey"
ENV LOAD_BALANCER_MODE "0"
ENV LOAD_BALANCER_KEY "KEY"
COPY doctrineProxies.sh /usr/local/bin/doctrineProxies.sh
RUN chmod 755 /usr/local/bin/doctrineProxies.sh
CMD ["/usr/local/bin/doctrineProxies.sh"]