forked from islamic-network/api.aladhan.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 1.07 KB
/
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
FROM ghcr.io/islamic-network/php:8.1-unit
# Copy files
COPY . /var/www/
#COPY etc/apache2/mods-enabled/mpm_prefork.conf /etc/apache2/mods-enabled/mpm_prefork.conf
COPY etc/unit/.unit.conf.json /docker-entrypoint.d/.unit.conf.json
# 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 Doctrine 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 ###################################################