Public Repository

Last pushed: 9 days ago
Short Description
Short description is empty for this repo.
Full Description

dockerfile info

FROM php:7.0-apache
MAINTAINER ukky <ukito.shi@gmail.com>

RUN apt-get update

# Install bz2
RUN apt-get install -y libbz2-dev
RUN docker-php-ext-install bz2

# Install mcrypt
RUN apt-get install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt

RUN apt-get update
RUN apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev libc-client-dev
RUN apt-get install -y libicu-dev libkrb5-dev
RUN pecl install intl
RUN docker-php-ext-install intl


# Install other extensions
RUN docker-php-ext-install pdo_mysql \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install zip \
    && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
    && docker-php-ext-install imap \
    && docker-php-ext-install mbstring

RUN apt-get install -y git

# Install composer
## Register the COMPOSER_HOME environment variable
ENV COMPOSER_HOME /composer
## Add global binary directory to PATH and make sure to re-export it
ENV PATH /composer/vendor/bin:$PATH
## Allow Composer to be run as root
ENV COMPOSER_ALLOW_SUPERUSER 1
## Setup the Composer installer
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
  && curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \
  && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"
RUN cd /tmp && \
    php composer-setup.php &&\
    php -r "unlink('composer-setup.php');"
#RUN php /tmp/composer-setup.php --no-ansi --install-dir=/usr/local/bin --filename=composer --version=${COMPOSER_VERSION} && rm -rf /tmp/composer-setup.php
RUN mv /tmp/composer.phar /usr/local/bin/composer

# Install xdebug
RUN pecl install xdebug

# add mod_rewrite
RUN a2enmod rewrite

# Install editor
RUN apt-get install -y vim

#put php.ini
COPY php.ini /usr/local/etc/php


# start apache
EXPOSE 80
CMD /usr/sbin/apache2ctl -D FOREGROUND
Docker Pull Command
Owner
ukt1113

Comments (0)