diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch index 6edd33546..7367721f4 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