-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphp.Dockerfile
More file actions
55 lines (46 loc) · 1.36 KB
/
php.Dockerfile
File metadata and controls
55 lines (46 loc) · 1.36 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
51
52
53
54
55
FROM php:7.4-fpm
WORKDIR /var/www/html/
RUN set -ex; \
\
apt-get update && apt-get install -y --no-install-recommends \
libonig-dev \
ghostscript \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
zlib1g-dev \
libpcre3-dev \
&& apt-get install -y libicu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j "$(nproc)" gd exif \
&& docker-php-ext-install mbstring pdo pdo_mysql \
&& docker-php-ext-install opcache \
mysqli \
pdo \
pdo_mysql \
zip \
&& apt install -y libmagickwand-dev --no-install-recommends \
&& pecl install redis \
&& pecl install imagick \
&& docker-php-ext-enable imagick
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# RUN pecl install imagick \
# && docker-php-ext-enable imagick
# RUN apt-get clean && rm -rf /var/lib/apt/lists/*
ARG UNAME=www-data
ARG UGROUP=www-data
ARG UID=1000
ARG GID=1000
RUN usermod -u $UID $UNAME && groupmod -g $GID $UGROUP
# RUN set -x \
# && set -e \
# && mkdir -p /var/www/html/ \
# && chown -R www-data /var/www/html/
# COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# CMD bash -c "composer install && php-fpm"
# CMD bash -c "php-fpm"
RUN ls -la