mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
Use multithreaded compilation of Libiconv and Mastodon (#231)
* Multithreaded compilation for Libiconv & Mastodon (master) * Multithreaded compilation for Libiconv & Mastodon (stable) * Multithreaded compilation for Libiconv & Mastodon (targaryen)
This commit is contained in:
parent
c58c548b54
commit
f1d9053bb8
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user