Remove custom buildpack, use heroku-postbuild instead
This commit is contained in:
parent
ef92dcb38c
commit
81cc19f5b5
3 changed files with 5 additions and 24 deletions
|
@ -1 +0,0 @@
|
||||||
https://github.com/kudos/heroku-buildpack-nodejs-jspm.git
|
|
21
Dockerfile
21
Dockerfile
|
@ -1,21 +0,0 @@
|
||||||
FROM mhart/alpine-node
|
|
||||||
MAINTAINER Jonathan Cremin <jonathan@crem.in>
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN apk add --update make gcc g++ python git
|
|
||||||
|
|
||||||
COPY package.json package.json
|
|
||||||
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
RUN apk del make gcc g++ python git && \
|
|
||||||
rm -rf /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
|
|
@ -6,11 +6,12 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "babel -d public/views views",
|
"build": "babel -d public/views views",
|
||||||
"cover": "istanbul cover _mocha -- --require babel-core/register --require co-mocha test/**/*.js",
|
"cover": "istanbul cover _mocha -- --require babel-core/register --require co-mocha test/**/*.js",
|
||||||
"start": "npm run build && node -r babel-core/register app.js",
|
"start": "node -r babel-core/register app.js",
|
||||||
"test": "mocha --require co-mocha --compilers js:babel-core/register test/**/*.js --timeout=10000",
|
"test": "mocha --require co-mocha --compilers js:babel-core/register test/**/*.js --timeout=10000",
|
||||||
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",
|
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",
|
||||||
"watch-js": "babel -wd public/views views",
|
"watch-js": "babel -wd public/views views",
|
||||||
"watch-server": "nodemon -x \"node -r babel-core/register\" -e js,jsx -i public/ -i chrome/ app.js"
|
"watch-server": "nodemon -x \"node -r babel-core/register\" -e js,jsx -i public/ -i chrome/ app.js",
|
||||||
|
"heroku-postbuild": "jspm install && npm run build"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^5.0.0",
|
"node": "^5.0.0",
|
||||||
|
@ -61,6 +62,7 @@
|
||||||
"react": "~0.14.5",
|
"react": "~0.14.5",
|
||||||
"react-dom": "~0.14.5",
|
"react-dom": "~0.14.5",
|
||||||
"react-google-analytics": "~0.2.0",
|
"react-google-analytics": "~0.2.0",
|
||||||
|
"react-helmet": "^3.0.1",
|
||||||
"react-router": "~1.0.0",
|
"react-router": "~1.0.0",
|
||||||
"spotify": "~0.3.0",
|
"spotify": "~0.3.0",
|
||||||
"superagent": "~1.6.1",
|
"superagent": "~1.6.1",
|
||||||
|
@ -85,6 +87,7 @@
|
||||||
"react": "npm:react@~0.14.5",
|
"react": "npm:react@~0.14.5",
|
||||||
"react-dom": "npm:react-dom@~0.14.5",
|
"react-dom": "npm:react-dom@~0.14.5",
|
||||||
"react-google-analytics": "npm:react-google-analytics@~0.2.0",
|
"react-google-analytics": "npm:react-google-analytics@~0.2.0",
|
||||||
|
"react-helmet": "npm:react-helmet@^3.0.1",
|
||||||
"react-router": "npm:react-router@~1.0.0",
|
"react-router": "npm:react-router@~1.0.0",
|
||||||
"superagent": "npm:superagent@~1.2.0"
|
"superagent": "npm:superagent@~1.2.0"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue