add node-sass rebuild to Dockerfile, update README with Docker disk space usage

This commit is contained in:
Cassie Tarakajian 2017-11-06 16:56:07 -05:00
parent 22cd8920a1
commit 4af6990b07
2 changed files with 7 additions and 5 deletions

View File

@ -11,6 +11,9 @@ WORKDIR $APP_HOME
RUN git submodule init && \
npm install
# Rebuild node-sass just to be safe
RUN npm rebuild node-sass
# For development, mark the directory as a mount override point
VOLUME $APP_HOME

View File

@ -38,12 +38,11 @@ Please refer to [this gist](https://gist.github.com/andrewn/953ffd5cb17ac2634dc9
The automatic redirection to HTTPS is turned off by default in development. If you need to test this behavior, put `FORCE_TO_HTTPS=true` in your `.env` file.
## Development Installation (using Docker)
## Development Installation using Docker
Using Docker, you can have a complete, consistent development environment
without having to manually install dependencies such as Node, Mongo, etc. It
also helps isolate these dependencies and their data from other projects that
you may have on the same computer that use different/conflicting versions, etc.
Using Docker, you can have a complete, consistent development environment without having to manually install dependencies such as Node, Mongo, etc. It also helps isolate these dependencies and their data from other projects that you may have on the same computer that use different/conflicting versions, etc.
Note that this takes up a significant amount of space on your machine. Make sure you have at least 5GB free.
1. Install Docker for your operating system
* Mac: https://www.docker.com/docker-mac