24 行
621 B
Docker
24 行
621 B
Docker
FROM php:8.0.3-fpm-buster
|
|
SHELL ["/bin/bash", "-oeux", "pipefail", "-c"]
|
|
|
|
ENV COMPOSER_ALLOW_SUPERUSER=1 \
|
|
COMPOSER_HOME=/composer
|
|
|
|
# composer install
|
|
COPY --from=composer:2.0 /usr/bin/composer /usr/bin/composer
|
|
|
|
# Node.js install
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|
RUN apt-get install -y nodejs
|
|
|
|
# yarnをインストール
|
|
RUN apt-get update && \
|
|
apt-get -y install git unzip libzip-dev libicu-dev libonig-dev && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
docker-php-ext-install intl pdo_mysql zip bcmath
|
|
|
|
COPY ./php.ini /usr/local/etc/php/php.ini
|
|
|
|
WORKDIR /work
|