Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Try to reduce docker image size

Chocobozzzd1e5922379fa
diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch
index 6edd33546c..7367721f4b 100644
--- a/support/docker/production/Dockerfile.stretch
+++ b/support/docker/production/Dockerfile.stretch
@@ -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