First commit - DAMP stack with Prestashop 8 packed - Wp not completed yet
This commit is contained in:
73
conf/php/Dockerfile
Normal file
73
conf/php/Dockerfile
Normal file
@@ -0,0 +1,73 @@
|
||||
ARG VERSION
|
||||
FROM php:${VERSION}
|
||||
# Environments
|
||||
ENV TZ=Europe/Paris
|
||||
ENV WORKDIR=/var/www/html/
|
||||
|
||||
# Updates and installs system dependencies
|
||||
RUN apk add --update --no-cache \
|
||||
bash \
|
||||
tzdata \
|
||||
libxml2-dev \
|
||||
libpng-dev \
|
||||
libjpeg-turbo-dev \
|
||||
freetype-dev \
|
||||
postgresql-dev \
|
||||
libzip-dev \
|
||||
libxslt-dev \
|
||||
oniguruma-dev \
|
||||
linux-headers \
|
||||
imagemagick-dev \
|
||||
$PHPIZE_DEPS && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN apk add --no-cache \
|
||||
&& docker-php-ext-install pdo \
|
||||
&& docker-php-ext-install pdo_mysql \
|
||||
&& docker-php-ext-install opcache \
|
||||
&& docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-install zip
|
||||
# Configure php dependency
|
||||
RUN docker-php-ext-configure soap --enable-soap
|
||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
|
||||
|
||||
# Install php dependencies
|
||||
RUN docker-php-ext-install \
|
||||
-j$(nproc) gd \
|
||||
bcmath \
|
||||
xml \
|
||||
soap \
|
||||
mbstring \
|
||||
pdo \
|
||||
pdo_mysql \
|
||||
pdo_pgsql \
|
||||
mysqli \
|
||||
zip \
|
||||
opcache \
|
||||
intl \
|
||||
xsl \
|
||||
exif \
|
||||
soap \
|
||||
zip
|
||||
|
||||
# Install pecl
|
||||
RUN pecl install xdebug && docker-php-ext-enable xdebug
|
||||
RUN pecl -v install redis && docker-php-ext-enable redis
|
||||
|
||||
|
||||
# Install composer
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
# Workdir
|
||||
WORKDIR ${WORKDIR}
|
||||
|
||||
# Copy files to container
|
||||
#COPY ./ ./
|
||||
|
||||
# Expose port 9000 and start php-fpm server
|
||||
EXPOSE 9000
|
||||
|
||||
# Run entrypoint
|
||||
COPY ./entrypoint.sh /usr/bin/docker-entrypoint
|
||||
RUN chmod +x /usr/bin/docker-entrypoint
|
||||
CMD [ "docker-entrypoint" ]
|
||||
3
conf/php/entrypoint.sh
Executable file
3
conf/php/entrypoint.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# composer install -o --working-dir="$WORKDIR"/application
|
||||
php-fpm
|
||||
Reference in New Issue
Block a user