From 5ca68d325064cc59d8232016e13da579e1eb82c6 Mon Sep 17 00:00:00 2001 From: Mike Cooper Date: Mon, 23 Mar 2020 10:53:01 -0700 Subject: [PATCH] Split python and node dependency commands in dev docker I don't understand why, but this seems to help #2145. --- Dockerfile | 4 ++-- Dockerfile.development | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 43415286a..2200c473f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,8 @@ RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - COPY ./requirements /app/requirements COPY ./package.json /app/package.json COPY ./yarn.lock /app/yarn.lock -RUN pip install --upgrade --no-cache-dir -r requirements/default.txt && \ - yarn install --frozen-lockfile +RUN pip install --upgrade --no-cache-dir -r requirements/default.txt +RUN yarn install --frozen-lockfile COPY . /app RUN NODE_ENV=production yarn build && \ diff --git a/Dockerfile.development b/Dockerfile.development index 86ced4351..a5cb03df3 100644 --- a/Dockerfile.development +++ b/Dockerfile.development @@ -20,8 +20,8 @@ RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - COPY ./requirements /app/requirements COPY ./package.json /app/package.json COPY ./yarn.lock /app/yarn.lock -RUN pip install --upgrade --no-cache-dir -r requirements/default.txt -r requirements/dev.txt && \ - yarn install --frozen-lockfile +RUN pip install --upgrade --no-cache-dir -r requirements/default.txt -r requirements/dev.txt +RUN yarn install --frozen-lockfile COPY --chown=app . /app