+RUN yarn install --pure-lockfile \
+ && npm run build -- $NPM_RUN_BUILD_OPTS \
+ && rm -r ./node_modules ./client/node_modules \
+ && yarn install --pure-lockfile --production \
+ && yarn cache clean
+
+USER root
+
+RUN mkdir /data /config
+RUN chown -R peertube:peertube /data /config
+