-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (46 loc) · 1.07 KB
/
Dockerfile
File metadata and controls
50 lines (46 loc) · 1.07 KB
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
#BASE
FROM php:7.3-fpm
#WORKDIR /build
RUN apt-get update && \
apt-get install -y \
libpng-dev \
libjpeg-dev \
libicu-dev \
libzip-dev \
libldb-dev \
libldap2-dev \
procps \
vim \
nginx \
supervisor \
&& docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install \
opcache \
intl \
pcntl \
ldap \
zip \
mysqli \
&& docker-php-ext-enable \
ldap \
&& apt purge -y $PHPIZE_DEPS \
&& apt autoremove -y --purge \
&& apt clean all
## RUNTIME
#FROM php-base as php-runtime
#WORKDIR /app
#RUN chown -R www-data:www-data /app
#ENV CHROOT_WWW_DIR=/app
# PHP-FPM
COPY .docker/conf/php.ini $PHP_INI_DIR/php.ini
RUN rm /usr/local/etc/php-fpm.d/*
COPY .docker/conf/fpm.conf /usr/local/etc/php-fpm.d/www.conf
# NGINX
RUN rm /etc/nginx/nginx.conf && chown -R www-data:www-data /var/www/html /run /var/lib/nginx /var/log/nginx
COPY .docker/conf/nginx.conf /etc/nginx/nginx.conf
#USER www-data
#
#COPY --chown=www-data:www-data . .
#
#EXPOSE 8080
#ENTRYPOINT [ "/app/docker-entrypoint.sh" ]