-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.local
More file actions
55 lines (48 loc) · 1.12 KB
/
Dockerfile.local
File metadata and controls
55 lines (48 loc) · 1.12 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:8.2-fpm-alpine
RUN apk add --no-cache \
bash \
libpng-dev \
libjpeg-turbo-dev \
libwebp-dev \
libzip-dev \
freetype-dev \
icu-dev \
oniguruma-dev \
curl-dev \
libxml2-dev \
imagemagick-dev \
autoconf \
gcc \
g++ \
make \
pkgconfig \
libtool \
file \
re2c \
gettext-dev \
zlib-dev \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install \
pdo_mysql \
mbstring \
pcntl \
bcmath \
zip \
intl \
xml \
gd \
&& apk del autoconf gcc g++ make pkgconfig libtool file re2c gettext-dev zlib-dev
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
RUN addgroup -g 1000 -S www && \
adduser -u 1000 -S www -G www && \
chown -R www:www /var/www
USER www
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["php-fpm"]