diff --git a/mastodon/Dockerfile.master b/mastodon/Dockerfile.master
index 2b680a3..973d6cc 100644
--- a/mastodon/Dockerfile.master
+++ b/mastodon/Dockerfile.master
@@ -60,13 +60,13 @@ RUN apk -U upgrade \
  && mkdir /tmp/src && tar xzf /tmp/libiconv-${LIBICONV_VERSION}.tar.gz -C /tmp/src \
  && cd /tmp/src/libiconv-${LIBICONV_VERSION} \
  && ./configure --prefix=/usr/local \
- && make && make install && libtool --finish /usr/local/lib \
+ && make -j$(getconf _NPROCESSORS_ONLN) && make install && libtool --finish /usr/local/lib \
 
 # Install Mastodon
  && cd /mastodon \
  && wget -qO- https://github.com/${REPOSITORY}/archive/${VERSION}.tar.gz | tar xz --strip 1 \
  && gem install bundler \
- && bundle install --deployment --clean --no-cache --without test development \
+ && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --clean --no-cache --without test development \
  && yarn --ignore-optional --pure-lockfile \
 
 # Precompile Mastodon assets
diff --git a/mastodon/Dockerfile.stable b/mastodon/Dockerfile.stable
index fbd3049..4971766 100644
--- a/mastodon/Dockerfile.stable
+++ b/mastodon/Dockerfile.stable
@@ -60,13 +60,13 @@ RUN apk -U upgrade \
  && mkdir /tmp/src && tar xzf /tmp/libiconv-${LIBICONV_VERSION}.tar.gz -C /tmp/src \
  && cd /tmp/src/libiconv-${LIBICONV_VERSION} \
  && ./configure --prefix=/usr/local \
- && make && make install && libtool --finish /usr/local/lib \
+ && make -j$(getconf _NPROCESSORS_ONLN) && make install && libtool --finish /usr/local/lib \
 
 # Install Mastodon
  && cd /mastodon \
  && wget -qO- https://github.com/${REPOSITORY}/archive/${VERSION}.tar.gz | tar xz --strip 1 \
  && gem install bundler \
- && bundle install --deployment --clean --no-cache --without test development \
+ && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --clean --no-cache --without test development \
  && yarn --ignore-optional --pure-lockfile \
 
 # Precompile Mastodon assets
diff --git a/mastodon/Dockerfile.targaryen b/mastodon/Dockerfile.targaryen
index 747bdc5..433ecb9 100644
--- a/mastodon/Dockerfile.targaryen
+++ b/mastodon/Dockerfile.targaryen
@@ -62,14 +62,14 @@ RUN apk -U upgrade \
  && mkdir /tmp/src && tar xzf /tmp/libiconv-${LIBICONV_VERSION}.tar.gz -C /tmp/src \
  && cd /tmp/src/libiconv-${LIBICONV_VERSION} \
  && ./configure --prefix=/usr/local \
- && make && make install && libtool --finish /usr/local/lib \
+ && make -j$(getconf _NPROCESSORS_ONLN) && make install && libtool --finish /usr/local/lib \
 
 # Install Mastodon
  && cd /mastodon \
  && wget -qO- https://github.com/${REPOSITORY}/archive/${VERSION}.tar.gz | tar xz --strip 1 \
  && cp -R /tmp/targaryen/* . && chmod +x targaryen.sh && ./targaryen.sh \
  && gem install bundler \
- && bundle install --deployment --clean --no-cache --without test development \
+ && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --clean --no-cache --without test development \
  && yarn --ignore-optional --pure-lockfile \
 
 # Precompile Mastodon assets