Try to reduce docker image size

pull/918/head
Chocobozzz 2018-08-08 10:10:11 +02:00
parent 47c951b70b
commit d1e5922379
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View 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