Skip to content

Commit

Permalink
Split python and node dependency commands in dev docker
Browse files Browse the repository at this point in the history
I don't understand why, but this seems to help mozilla#2145.
  • Loading branch information
mythmon committed Mar 23, 2020
1 parent fe898b1 commit 5ca68d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5ca68d3

Please sign in to comment.