]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/docker/production/Dockerfile.stretch
Fix dockerfile
[github/Chocobozzz/PeerTube.git] / support / docker / production / Dockerfile.stretch
index 6edd33546cefbcc53930805f06f39972000db57a..911d064f6c26c04ae6d07a1439fadf9270ad255b 100644 (file)
@@ -55,7 +55,10 @@ 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 \
+    && yarn cache clean
 
 USER root