-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 1.01 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
26
27
28
29
30
31
FROM registry.sedona.fr/images/php:7.4 as builder
LABEL maintainer="<php@sedona.fr> Sedona Solutions - PHP"
COPY . /var/www/html
WORKDIR /var/www/html
# Check for ignored folders to avoid layer issues, ref: https://github.com/docker/docker/issues/783
RUN if [ -d .git ]; then echo "ERROR: .dockerignore folders detected, exiting" && exit 1; fi
RUN set -ex ; \
make install-php-ext;\
make package_info.json c-install cc assets ;\
make dotenv-clear
# création de l'image
FROM registry.sedona.fr/images/php:7.4-fpm-httpd
LABEL maintainer="<php@sedona.fr> Sedona Solutions - PHP"
ADD .deploy/dev/web/httpd.conf /usr/local/apache2/conf.d/httpd.conf
ADD .deploy/dev/app/run.sh /docker-entrypoint-init.d/run.sh
COPY --from=builder /var/www/html /var/www/html
WORKDIR /var/www/html
RUN set -xe ;\
ls -la ;\
make install-php-ext ;\
make install-wkhtmltopdf ;\
chown -R www-data /var/www/html ;\
chmod a+w /var/www/html/var ;\
echo "IncludeOptional conf.d/*.conf" >> /usr/local/apache2/conf/httpd.conf