diff options
Diffstat (limited to 'support/docker')
-rw-r--r-- | support/docker/production/Dockerfile.bullseye | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/support/docker/production/Dockerfile.bullseye b/support/docker/production/Dockerfile.bullseye index 7b2650538..ac97ddce3 100644 --- a/support/docker/production/Dockerfile.bullseye +++ b/support/docker/production/Dockerfile.bullseye | |||
@@ -1,9 +1,4 @@ | |||
1 | FROM node:12-bullseye-slim | 1 | FROM node:14-bullseye-slim |
2 | |||
3 | # Allow to pass extra options to the npm run build | ||
4 | # eg: --light --light-fr to not build all client languages | ||
5 | # (speed up build time if i18n is not required) | ||
6 | ARG NPM_RUN_BUILD_OPTS | ||
7 | 2 | ||
8 | # Install dependencies | 3 | # Install dependencies |
9 | RUN apt update \ | 4 | RUN apt update \ |
@@ -21,10 +16,10 @@ WORKDIR /app | |||
21 | 16 | ||
22 | USER peertube | 17 | USER peertube |
23 | 18 | ||
24 | RUN yarn install --pure-lockfile \ | 19 | RUN yarn install --pure-lockfile --network-timeout 1200000 --network-concurrency 20 \ |
25 | && npm run build -- $NPM_RUN_BUILD_OPTS \ | 20 | && npm run build \ |
26 | && rm -r ./node_modules ./client/node_modules \ | 21 | && rm -r ./node_modules ./client/node_modules ./client/.angular \ |
27 | && yarn install --pure-lockfile --production \ | 22 | && yarn install --pure-lockfile --production --network-timeout 1200000 --network-concurrency 20 \ |
28 | && yarn cache clean | 23 | && yarn cache clean |
29 | 24 | ||
30 | USER root | 25 | USER root |