Skip to content

Commit

Permalink
Fix npm postinstall
Browse files Browse the repository at this point in the history
After building the project:

```
$ docker run --rm cgm-remote-monitor ls /opt/app/static
admin
api-docs.html
audio
browserconfig.xml
clock.html
css
glyphs
images
index.html
js
manifest.json
profile
report
robots.txt
```

Notice how `bower_components` is missing after the build. This (obviously) breaks the web UI. Running the `postinstall` task manually fixes this. I remember having this same issue with Docker & these older npm versions before.
  • Loading branch information
jareware committed Dec 5, 2015
1 parent c72a62f commit 2af6952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ WORKDIR /opt/app
RUN git clone git://github.com/nightscout/cgm-remote-monitor.git /opt/app
RUN cd /opt/app && git checkout ${DEPLOY_HEAD-master}
RUN cd /opt/app && npm install
RUN cd /opt/app && npm run postinstall
RUN cd /opt/app && npm run env
EXPOSE 5000
EXPOSE 8080
Expand Down

0 comments on commit 2af6952

Please sign in to comment.