Skip to content

Commit

Permalink
Fix #1: switch to Alpine-based image
Browse files Browse the repository at this point in the history
Thanks to sass/node-sass#1589 an
Alpine-compatible node-sass binary is available from 4.1.0 onwards.

Bower requires Git.
  • Loading branch information
ddeboer committed Jan 16, 2017
1 parent 2426c51 commit 91a7b5e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:slim
FROM alpine:3.4

RUN apt-get update \
&& apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*

RUN npm install -g bower gulp node-sass
# musl-dev is required for the node-sass binary from https://github.com/sass/node-sass/issues/1589
RUN apk add --no-cache ca-certificates git musl-dev nodejs \
&& apk add --no-cache --virtual build-deps gcc g++ make python \
&& npm install -g bower gulp node-sass \
&& apk del build-deps

COPY ./docker-entrypoint.sh /

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
driebit/node-gulp
=================

Run a [Gulp](http://gulpjs.com/) task in a Docker container.
Run a [Gulp](http://gulpjs.com/) task in an Alpine-based Docker container.

Usage
-----
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

if [ -f ./bower.json ]; then
bower install --allow-root
Expand Down

0 comments on commit 91a7b5e

Please sign in to comment.