Last active
July 29, 2016 14:33
-
-
Save sagikazarmark/598ddae57d853de6663efd1d707d6850 to your computer and use it in GitHub Desktop.
Alpine PHP && node sass
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
RUN set -xe \ | |
&& apk add --no-cache \ | |
coreutils \ | |
freetype-dev \ | |
libjpeg-turbo-dev \ | |
libltdl \ | |
libmcrypt-dev \ | |
libpng-dev \ | |
icu icu-libs icu-dev \ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install -j$(nproc) iconv mbstring mcrypt intl pdo_mysql gd | |
# Install sass binary | |
# https://github.com/sass/node-sass/issues/1589 | |
# https://github.com/jbergknoff/Dockerfile/blob/c8b94cf41348bd60f753364237811c8365ebd4d6/sass/build.sh | |
#ENV NODE_SASS_VERSION | |
RUN set -xe \ | |
&& apk add --no-cache \ | |
libstdc++ \ | |
&& apk add --no-cache --virtual .build-deps \ | |
git \ | |
build-base \ | |
&& git clone https://github.com/sass/sassc \ | |
&& cd sassc \ | |
&& git clone https://github.com/sass/libsass \ | |
&& SASS_LIBSASS_PATH=$(pwd)/libsass make \ | |
&& mv bin/sassc /usr/bin/sass \ | |
&& apk del .build-deps \ | |
&& cd .. \ | |
&& rm -rf sassc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment