fix image builds on docker hub

This commit is contained in:
Sameer Naik 2019-01-03 19:16:57 +05:30 committed by Niclas Mietz
parent 011b0af72f
commit 2ca3c61261
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ RUN apt-get update \
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
&& locale-gen en_US.UTF-8 \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \
&& gem install --no-document bundler \
&& gem install --no-document bundler -v 1.17.3 \
&& rm -rf /var/lib/apt/lists/*
COPY assets/build/ ${GITLAB_BUILD_DIR}/

View File

@ -166,7 +166,7 @@ exec_as_git yarn install --production --pure-lockfile
exec_as_git yarn add ajv@^4.0.0
echo "Compiling assets. Please be patient, this could take a while..."
exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true
exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true NODE_OPTIONS="--max-old-space-size=4096"
# remove auto generated ${GITLAB_DATA_DIR}/config/secrets.yml
rm -rf ${GITLAB_DATA_DIR}/config/secrets.yml