]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Try to reduce docker image size
authorChocobozzz <me@florianbigard.com>
Wed, 8 Aug 2018 08:10:11 +0000 (10:10 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 8 Aug 2018 08:10:11 +0000 (10:10 +0200)
support/docker/production/Dockerfile.stretch

index 6edd33546cefbcc53930805f06f39972000db57a..7367721f4b6c2e02a1edc5c365f5f2fbd95b5210 100644 (file)
@@ -55,7 +55,9 @@ RUN chown -R peertube:peertube /app
 USER peertube
 
 RUN yarn install --pure-lockfile \
-    && npm run build
+    && npm run build \
+    && rm -r ./node_modules ./client/node_modules \
+    && yarn install --pure-lockfile --production
 
 USER root