-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.Dockerfile
More file actions
39 lines (36 loc) · 1.39 KB
/
app.Dockerfile
File metadata and controls
39 lines (36 loc) · 1.39 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
FROM php:8.4-fpm
RUN apt-get update \
&& apt-get install -y curl zip npm libzip-dev zlib1g-dev unzip libpng-dev \
libjpeg-dev libfreetype6-dev git mariadb-client libmagickwand-dev openssh-client \
ffmpeg \
--no-install-recommends
# --- GPG + Git-Support für signierte Commits ---
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gnupg \
gpg-agent \
git \
pinentry-curses
RUN docker-php-ext-install pdo_mysql zip \
&& pecl install imagick \
&& pecl install xdebug \
&& pecl install redis \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-enable imagick \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd \
&& docker-php-ext-install pcntl \
&& docker-php-ext-install intl \
&& docker-php-ext-install ftp \
&& docker-php-ext-enable redis \
&& docker-php-ext-install opcache \
&& curl -sS https://getcomposer.org/installer \
| php -- --install-dir=/usr/local/bin --filename=composer \
COPY docker/php/conf.d/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
COPY docker/php/conf.d/php.ini /usr/local/etc/php/conf.d/php.ini
COPY docker/php-fpm/www.conf /usr/local/etc/php-fpm.d/www.conf
ARG UID=1000
ARG GID=1000
RUN addgroup --gid $GID appgroup \
&& adduser --uid $UID --gid $GID --disabled-password --gecos "" appuser
USER appuser