diff --git a/Dockerfile b/Dockerfile index f7b62e68..d127339f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ RUN set -x \ && apt-get update \ && apt-get install gcc make libpq-dev libffi-dev --no-install-recommends -y \ && rm -rf node_modules \ - && npm install -g bower node-gyp gulp-cli \ + && npm install -g gulp-cli \ && npm install \ && pip install -U pip setuptools \ && pip install -r requirements/dev.txt \ diff --git a/docker-compose.yml b/docker-compose.yml index 0613d000..7db4ed90 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,8 +20,16 @@ camo: app: build: . volumes: - - .:/app/ - - /app/node_modules + # We specify all of these directories instead of just . because we want to + # avoid having ./node_modules from the host OS being shared with the docker + # container, and since there's no way to exclude a directory, the only way + # to make this work is to share multiple, smaller directories. These cover + # the important things that we want to share, but changes to requirements + # or any file not in these directories will require a rebuild. + - ./dev:/app/dev + - ./docs:/app/docs + - ./warehouse:/app/warehouse + - ./tests:/app/tests environment: WAREHOUSE_ENV: development WAREHOUSE_TOKEN: insecuretoken