From 959395ebaa6924a262ebbc112a3b62d40510ef41 Mon Sep 17 00:00:00 2001 From: angelosarto Date: Fri, 2 Feb 2018 02:26:34 -0600 Subject: [PATCH] fix(docker): Fix GraphiQL dependency in dockerfile (#679) GraphiQL produces error: Cannot use e "__Schema" from another module or realm. #677 Pin the version of graphql to < 0.12 in the package.json right before the npm build. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index e7eb0cdfab..7c1c4c4a47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,9 @@ WORKDIR /postgraphql COPY . /postgraphql +# Temporary pin of graphql to less than 0.12 in package.json +RUN sed -i 's/\"graphql\": \">=0.6 <0.13\"/\"graphql\": \">=0.6 <0.12\"/g' package.json + RUN npm install RUN scripts/build RUN npm pack