Skip to content

Instantly share code, notes, and snippets.

@sagikazarmark
Last active July 29, 2016 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagikazarmark/598ddae57d853de6663efd1d707d6850 to your computer and use it in GitHub Desktop.
Save sagikazarmark/598ddae57d853de6663efd1d707d6850 to your computer and use it in GitHub Desktop.
Alpine PHP && node sass
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