Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 87ccbbe

Browse files
author
ABaldwinHunter
committed
Combine node install commands into single RUN
Avoids problematic behavior that occurs when the nodesource curl and nodejs install commands are cached separately.
1 parent 77f00d6 commit 87ccbbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ COPY Gemfile.lock /usr/src/app/
88
COPY vendor/php-parser/composer.json /usr/src/app/vendor/php-parser/
99
COPY vendor/php-parser/composer.lock /usr/src/app/vendor/php-parser/
1010

11-
RUN curl --silent --location https://deb.nodesource.com/setup_5.x | bash -
12-
RUN apt-get update && apt-get install -y nodejs python openssh-client php5-cli php5-json
11+
RUN curl --silent --location https://deb.nodesource.com/setup_5.x | bash - && \
12+
apt-get update && apt-get install -y nodejs python openssh-client php5-cli php5-json
1313
RUN gem install bundler --no-ri --no-rdoc && \
1414
bundle install -j 4 && \
1515
curl -sS https://getcomposer.org/installer | php

0 commit comments

Comments
 (0)