Skip to content

Commit 5d408fd

Browse files
ThomasLeisterGargron
authored andcommitted
[Docker] Add multicore support to "make" and "bundler" (#4544)
* Let make and bundler use multiple cores * Adds -j option to bundle install instead of bundle config
1 parent 47579ec commit 5d408fd

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
@@ -48,7 +48,7 @@ RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/reposit
4848
&& rm libiconv.tar.gz \
4949
&& cd /tmp/src/libiconv-$LIBICONV_VERSION \
5050
&& ./configure --prefix=/usr/local \
51-
&& make \
51+
&& make -j$(getconf _NPROCESSORS_ONLN)\
5252
&& make install \
5353
&& libtool --finish /usr/local/lib \
5454
&& cd /mastodon \
@@ -57,7 +57,7 @@ RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/reposit
5757
COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
5858

5959
RUN bundle config build.nokogiri --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include \
60-
&& bundle install --deployment --without test development \
60+
&& bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without test development \
6161
&& yarn --ignore-optional --pure-lockfile
6262

6363
COPY . /mastodon

0 commit comments

Comments
 (0)