forked from unicorn-gallery/unicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 688 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:5.6-fpm
RUN apt-get update && \
apt-get install -y git \
zip \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install -j$(nproc) gd
RUN echo "date.timezone = UTC" > /usr/local/etc/php/conf.d/date.timezone.ini
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
COPY composer.json composer.lock /app/
WORKDIR /app
RUN chown -R www-data:www-data /app
ENV COMPOSER_ALLOW_SUPERUSER 1
CMD bash -c "composer install && php-fpm"\