From 43dbba68e57d4a70c1e2d282c2ef30acc43d6831 Mon Sep 17 00:00:00 2001 From: Patrik Ring Date: Mon, 11 Jun 2018 18:00:50 -0400 Subject: [PATCH] Update dockerfile to work with new baseimage Base a new docker file off of node:8-alpine seems to work well with newer sass versions which was an issue with the older alpine images. Adding in python for gyp to work and --unsafe-perm because npm was complaining a lot about it. Fixing issues with running `sourcey/spectacle` docker file generating below errors: ```TypeError: Cannot read property '$ref' of null at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:169:11) at replaceRefs (/usr/local/lib/node_modules/spectacle-docs/app/lib/resolve-references.js:189:5)``` --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 706c5d1..4c84e7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM node:7.5.0-alpine +FROM node:8-alpine MAINTAINER Kam Low USER 0 WORKDIR /opt -RUN apk update \ - && apk add git vim curl wget \ - && rm -rf /var/cache/apk/* \ - && npm install -g spectacle-docs +RUN apk add --no-cache \ + nodejs nodejs-npm g++ \ + python python-dev + +RUN npm install --unsafe-perm -g spectacle-docs