summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-03-03 04:53:27 +0100
committerMax Magorsch <arzano@gentoo.org>2020-03-03 04:53:27 +0100
commit24048bdce69edd1f963e0fdcea06fe5dc0afaf5b (patch)
tree1c02a400668689ec05c3727c548b4928a931f5e7 /Dockerfile
parentSplit the planet and container update (diff)
downloadplanet-24048bdce69edd1f963e0fdcea06fe5dc0afaf5b.tar.gz
planet-24048bdce69edd1f963e0fdcea06fe5dc0afaf5b.tar.bz2
planet-24048bdce69edd1f963e0fdcea06fe5dc0afaf5b.zip
Speed up the planet data updatev2.0.5
We don't have to run bundle install and npm install every time we update the planet. Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 84f16e4..0126c01 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,12 +13,13 @@ WORKDIR /var/www/planet.gentoo.org
USER gplanet
-CMD bundle install \
+RUN bundle install \
&& npm install \
&& cd node_modules/@gentoo/tyrian \
&& npm install \
- && npm run dist \
- && cd /var/www/planet.gentoo.org \
+ && npm run dist
+
+CMD cd /var/www/planet.gentoo.org \
&& rm -rf build/* \
&& bundle exec pluto update -d data \
&& bundle exec pluto build -o build -d data -t tyrian