diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-08 10:10:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-08 10:10:11 +0200 |
commit | d1e5922379fa85377afec0ef7a8f1bcc070c3afb (patch) | |
tree | 1ca4fb0ee51cc4d29e56a9528cf110ffae6bfe0b /support | |
parent | 47c951b70b2303cb6111031c5db4bb65a36dd62f (diff) | |
download | PeerTube-d1e5922379fa85377afec0ef7a8f1bcc070c3afb.tar.gz PeerTube-d1e5922379fa85377afec0ef7a8f1bcc070c3afb.tar.zst PeerTube-d1e5922379fa85377afec0ef7a8f1bcc070c3afb.zip |
Try to reduce docker image size
Diffstat (limited to 'support')
-rw-r--r-- | support/docker/production/Dockerfile.stretch | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
55 | USER peertube | 55 | USER peertube |
56 | 56 | ||
57 | RUN yarn install --pure-lockfile \ | 57 | RUN yarn install --pure-lockfile \ |
58 | && npm run build | 58 | && npm run build \ |
59 | && rm -r ./node_modules ./client/node_modules \ | ||
60 | && yarn install --pure-lockfile --production | ||
59 | 61 | ||
60 | USER root | 62 | USER root |
61 | 63 | ||