Skip to content

Commit

Permalink
fix node-sass + upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jan 15, 2018
1 parent 4cfee24 commit e763c1d
Show file tree
Hide file tree
Showing 3 changed files with 1,386 additions and 816 deletions.
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
FROM orihoch/midburn-spark
# uncomment to force upgrade of system dependencies
# FROM node:8
# RUN apt-get update && apt-get install -y build-essential mysql-client
FROM node:8
RUN apt-get update && apt-get install -y build-essential mysql-client

RUN adduser --system spark
COPY .bowerrc .npmrc .yarnrc bower.json package.json yarn.lock /home/spark/
#RUN chown -R spark /home/spark/
RUN chown spark /home/spark/*
RUN chown -R spark /home/spark/
USER spark
RUN cd /home/spark && yarn install --ignore-scripts --pure-lockfile
# uncomment to force rebuild / in case of node version changes
# RUN npm rebuild node-sass --force
RUN yarn run bower install
RUN cd /home/spark && npm rebuild node-sass --force
RUN cd /home/spark && yarn run bower install

USER root
COPY . /home/spark
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"winston": "2.3.0",
"winston-slack-transport": "^2.0.0",
"xml2js-parser": "^1.1.1"
},
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-core": "^6.21.0",
Expand Down
Loading

0 comments on commit e763c1d

Please sign in to comment.