Skip to content

Commit c571377

Browse files
authored
Install gnupg needed for apt-key
1 parent 3a44614 commit c571377

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ FROM php:8.0-fpm-bullseye
33
WORKDIR /var/www/html
44

55
# Install base packages and repositories
6+
RUN apt-get update \
7+
&& apt-get install -y gnupg mariadb-client libicu-dev libpq-dev libzip-dev postgresql-client unzip wget zip zlib1g-dev gnupg2
8+
9+
# Install ansible
610
RUN echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main" > /etc/apt/sources.list.d/ansible.list
711
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
812
RUN apt-get update \
9-
&& apt-get install -y gnupg mariadb-client libicu-dev libpq-dev libzip-dev postgresql-client unzip wget zip zlib1g-dev ansible ansible-core ansible-lint
13+
&& apt-get install -y ansible ansible-core ansible-lint
1014

15+
# Install php packages and configure php.ini
1116
RUN echo 'memory_limit=256M' > /usr/local/etc/php/conf.d/memory-limit.ini
12-
13-
# Install php packages
1417
RUN docker-php-ext-install intl opcache pdo_mysql pdo_pgsql zip
1518
RUN pecl install pcov xdebug \
1619
&& docker-php-ext-enable pcov xdebug
@@ -25,4 +28,4 @@ RUN sh install_composer.sh \
2528

2629
RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v1.2.0/local-php-security-checker_1.2.0_linux_amd64 \
2730
&& chmod +x local-php-security-checker_1.2.0_linux_amd64 \
28-
&& mv local-php-security-checker_1.2.0_linux_amd64 /usr/local/bin/local-php-security-checker
31+
&& mv local-php-security-checker_1.2.0_linux_amd64 /usr/local/bin/local-php-security-checker

0 commit comments

Comments
 (0)