diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-03-03 04:53:27 +0100 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-03-03 04:53:27 +0100 |
commit | 24048bdce69edd1f963e0fdcea06fe5dc0afaf5b (patch) | |
tree | 1c02a400668689ec05c3727c548b4928a931f5e7 | |
parent | Split the planet and container update (diff) | |
download | planet-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>
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |