mirror of
https://github.com/sourcey/spectacle.git
synced 2024-09-11 13:45:23 +03:00
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)```
12 lines
200 B
Docker
12 lines
200 B
Docker
FROM node:8-alpine
|
|
MAINTAINER Kam Low <hello@sourcey.com>
|
|
|
|
USER 0
|
|
WORKDIR /opt
|
|
|
|
RUN apk add --no-cache \
|
|
nodejs nodejs-npm g++ \
|
|
python python-dev
|
|
|
|
RUN npm install --unsafe-perm -g spectacle-docs
|