From 24048bdce69edd1f963e0fdcea06fe5dc0afaf5b Mon Sep 17 00:00:00 2001 From: Max Magorsch Date: Tue, 3 Mar 2020 04:53:27 +0100 Subject: Speed up the planet data update We don't have to run bundle install and npm install every time we update the planet. Signed-off-by: Max Magorsch --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84f16e4c..0126c01a 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 -- cgit v1.2.3-65-gdbad