diff --git a/Dockerfile b/Dockerfile index 9f027f0c4d2..f9dce1a5cef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,7 @@ COPY --chown=node package.json $APP_SOURCE_DIR/ # by root by default, we have to initially create node_modules here with correct owner. # Without this NPM cannot write packages into node_modules later, when running in a container. RUN mkdir "$APP_SOURCE_DIR/node_modules" && chown node "$APP_SOURCE_DIR/node_modules" +RUN mkdir -p "$APP_SOURCE_DIR/.meteor/local" && chown node "$APP_SOURCE_DIR/.meteor/local" RUN meteor npm install diff --git a/docker-compose.yml b/docker-compose.yml index a0a67ad8c9b..96332876a7a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,7 @@ services: - "9229:9229" volumes: - .:/opt/reaction/src:cached - - ./.meteor/local:/opt/reaction/src/.meteor/local:delegated + - reaction_meteor_local:/opt/reaction/src/.meteor/local - reaction_node_modules:/opt/reaction/src/node_modules # do not link node_modules in, and persist it between dc up runs mongo: @@ -52,3 +52,4 @@ services: volumes: mongo-db: reaction_node_modules: + reaction_meteor_local: