forked from islamic-network/api.aladhan.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.apache
24 lines (18 loc) · 1 KB
/
Dockerfile.apache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ghcr.io/islamic-network/php:8.1-apache
# Copy files
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
# Delete stuff we do not need
RUN rm -rf /var/www/.git
RUN rm -rf /var/www/.gitignore
# Set the correct permissions
RUN chown -R www-data:www-data /var/www/
# The correct environment variables are set in the docker-compose file. Set any other ones here.
###############################################################################################################
## If you are using Doctine ORM, comment out the next 3 lines to generate proxies at container startup time. ##
# COPY bin/doctrine/proxies.sh /usr/local/bin/doctrine-proxies.sh
# RUN chmod -R 777 /tmp && chmod 755 /usr/local/bin/doctrine-proxies.sh
# CMD ["/usr/local/bin/doctrine-proxies.sh"]
###################################### Doctrine Proxies end ###################################################