Created
October 3, 2017 11:41
-
-
Save osule/1e7572793c9f8f9d3b701b5fc33aa42d to your computer and use it in GitHub Desktop.
web/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0-fpm | |
ENV WWW_HOME /var/www/html | |
ENV APP_HOME $WWW_HOME/canvas | |
ENV COMPOSER_HOME $WWW_HOME/.composer | |
COPY ./composer.json $APP_HOME/composer.json | |
COPY ./composer.lock $APP_HOME/composer.lock | |
WORKDIR $APP_HOME | |
RUN apt-get update -y; \ | |
apt-get install --no-install-recommends -y git zip unzip; \ | |
apt-get clean; \ | |
tar x --file=/usr/src/php.tar.xz --directory=/usr/src/; \ | |
cp /usr/src/php-7.0.23/php.ini-production /usr/local/etc/php/php.ini; \ | |
apt-get clean -y; \ | |
chown :www-data /usr/local/bin | |
COPY . $APP_HOME | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer; \ | |
composer install --prefer-dist --no-interaction; \ | |
chown -R www-data:www-data $APP_HOME/storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment