Skip to content

Commit

Permalink
Merge pull request #125 from leroy-merlin-br/chore/change-php-container
Browse files Browse the repository at this point in the history
choore(docker): remove leroy-merlin-br container
  • Loading branch information
orlandocavassani committed Dec 23, 2022
2 parents 89cff62 + 49bb198 commit 4018582
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
FROM leroymerlinbr/php:7.4
FROM php:7.4-fpm
LABEL maintainer="boitata@leroymerlin.com.br"

USER root:root

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN apt-get update -qq \
&& apt-get install -qq --no-install-recommends \
git zip unzip \
libzip-dev libssl-dev \
zlib1g-dev libicu-dev \
&& apt-get clean

RUN pecl install xdebug-3.1.6 \
&& docker-php-ext-enable \
xdebug \
&& docker-php-ext-configure \
intl \
&& docker-php-ext-install \
intl pcntl zip \
&& rm -rf /tmp/*

RUN cd /tmp \
&& git clone https://github.com/edenhill/librdkafka.git \
&& cd librdkafka \
Expand All @@ -22,10 +40,13 @@ ARG GID=1000

RUN groupmod -g ${GID} www-data \
&& usermod -u ${UID} -g www-data www-data \
&& mkdir -p /var/www/html \
&& chown -hR www-data:www-data \
/var/www \
/usr/local/

COPY custom.ini /usr/local/etc/php/conf.d/custom.ini

USER www-data:www-data
WORKDIR /var/www/html
ENV PATH=$PATH:/var/www/.composer/vendor/bin

0 comments on commit 4018582

Please sign in to comment.