Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM php:7.4-fpm-alpine AS base
ENV PATH=$PATH:/app/vendor/bin
WORKDIR /app
RUN apk add --no-cache \
libpng-dev \
mariadb-client \
&& docker-php-ext-install \
bcmath \
gd \
pdo_mysql
RUN mkdir -p web/sites/default/files \
&& chown -R www-data:www-data web/sites/default/files
FROM base AS dev
RUN apk add --no-cache \
git \
unzip
COPY --from=composer /usr/bin/composer /usr/bin/composer
ENV COMPOSER_MEMORY_LIMIT=-1
WORKDIR /app
COPY composer.json .
COPY composer.lock .
RUN composer install
RUN mkdir -p web/sites/simpletest \
&& chmod -R a+w web/sites/simpletest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment