2019-03-14 20:45:01 +09:00
|
|
|
FROM node:10-jessie as node
|
|
|
|
|
2019-08-13 17:03:59 +09:00
|
|
|
FROM php:7.3-apache
|
2018-06-05 23:45:29 +09:00
|
|
|
|
|
|
|
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2020-07-30 23:04:39 +09:00
|
|
|
&& apt-get install -y git libpq-dev unzip libicu-dev \
|
|
|
|
&& docker-php-ext-install pdo_pgsql intl \
|
2019-01-16 00:42:05 +09:00
|
|
|
&& pecl install xdebug \
|
2018-06-05 23:45:29 +09:00
|
|
|
&& curl -sS https://getcomposer.org/installer | php \
|
|
|
|
&& mv composer.phar /usr/local/bin/composer \
|
|
|
|
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
|
|
|
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
|
|
|
|
&& a2enmod rewrite
|
|
|
|
|
2019-01-16 00:42:05 +09:00
|
|
|
COPY dist/bin /usr/local/bin/
|
|
|
|
COPY dist/php.d /usr/local/etc/php/php.d/
|
|
|
|
|
2019-03-14 20:45:01 +09:00
|
|
|
COPY --from=node /usr/local/bin/node /usr/local/bin/
|
|
|
|
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
|
|
|
|
COPY --from=node /opt/yarn-* /opt/yarn
|
|
|
|
|
|
|
|
RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
|
|
|
|
&& ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
|
|
|
|
&& ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-01-16 00:42:05 +09:00
|
|
|
ENTRYPOINT ["tissue-entrypoint.sh"]
|
|
|
|
CMD ["apache2-foreground"]
|
|
|
|
|
2018-06-05 23:45:29 +09:00
|
|
|
WORKDIR /var/www/html
|