Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new modules #43

Merged
merged 1 commit into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/debian/Dockerfile.apache.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ RUN { \
echo '</VirtualHost>'; \
} | tee /etc/apache2/sites-available/000-default.conf && \
echo "ServerName localhost" > /etc/apache2/conf-available/fqdn.conf && \
a2enmod rewrite expires remoteip cgid
a2enmod rewrite expires remoteip cgid headers
37 changes: 7 additions & 30 deletions src/debian/Dockerfile.php.tpl
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/install-php-extensions

# Install default PHP Extensions
RUN docker-php-ext-install -j$(nproc) \
RUN install-php-extensions \
bcmath \
mysqli \
pdo \
pdo_mysql

# Install Intl, LDAP, GD, SOAP, Tidy, XSL, Zip PHP Extensions
ARG GD_BUILD_ARGS="--with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/"
RUN apt-get update -y && apt-get install -y \
zlib1g-dev \
libicu-dev \
g++ \
libldap2-dev \
libgd-dev \
libzip-dev \
libtidy-dev \
libxml2-dev \
libxslt-dev \
zip \
--no-install-recommends && \
apt-mark auto \
zlib1g-dev \
g++ \
libldap2-dev \
libxml2-dev \
libxslt-dev && \
docker-php-ext-configure intl && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-configure gd ${GD_BUILD_ARGS:-}&& \
docker-php-ext-install -j$(nproc) \
pdo_mysql \
intl \
ldap \
gd \
soap \
tidy \
xsl \
zip && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*
zip \
exif \
gmp

# Pipe errors to stdErr
RUN echo "date.timezone = Pacific/Auckland" > /usr/local/etc/php/conf.d/timezone.ini && \
Expand Down