1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
pixelfed/Dockerfile

18 lines
607 B
Text
Raw Normal View History

2018-05-20 13:02:29 +00:00
FROM php:7.2-fpm-alpine
RUN apk add --no-cache git imagemagick \
&& apk add --no-cache --virtual .build build-base autoconf imagemagick-dev libtool \
2018-05-27 13:00:55 +00:00
&& docker-php-ext-install pdo_mysql pcntl \
2018-05-20 13:02:29 +00:00
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& apk del --purge .build
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/ \
&& ln -s /usr/local/bin/composer.phar /usr/local/bin/composer
WORKDIR /var/www/html
COPY . .
RUN composer install --prefer-source --no-interaction
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"