diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-04 16:49:20 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-04 16:49:20 +0100 |
commit | 219e18c944e5bc0e9620af96bb54451fa86e39ad (patch) | |
tree | e8f5e5aff9c75ed140fe70ba5c9f4c568c4ace87 /support/docker/production | |
parent | 5cad2ca9db9b9d138f8a33058d10b94a9fd50c69 (diff) | |
download | PeerTube-219e18c944e5bc0e9620af96bb54451fa86e39ad.tar.gz PeerTube-219e18c944e5bc0e9620af96bb54451fa86e39ad.tar.zst PeerTube-219e18c944e5bc0e9620af96bb54451fa86e39ad.zip |
Reuse latest dockerfile fixes
Diffstat (limited to 'support/docker/production')
-rw-r--r-- | support/docker/production/Dockerfile.bullseye | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/support/docker/production/Dockerfile.bullseye b/support/docker/production/Dockerfile.bullseye index ac97ddce3..e55da3307 100644 --- a/support/docker/production/Dockerfile.bullseye +++ b/support/docker/production/Dockerfile.bullseye | |||
@@ -2,7 +2,7 @@ FROM node:14-bullseye-slim | |||
2 | 2 | ||
3 | # Install dependencies | 3 | # Install dependencies |
4 | RUN apt update \ | 4 | RUN apt update \ |
5 | && apt install -y --no-install-recommends openssl ffmpeg python ca-certificates gnupg gosu build-essential curl \ | 5 | && apt install -y --no-install-recommends openssl ffmpeg python3 ca-certificates gnupg gosu build-essential curl \ |
6 | && gosu nobody true \ | 6 | && gosu nobody true \ |
7 | && rm /var/lib/apt/lists/* -fR | 7 | && rm /var/lib/apt/lists/* -fR |
8 | 8 | ||
@@ -16,7 +16,9 @@ WORKDIR /app | |||
16 | 16 | ||
17 | USER peertube | 17 | USER peertube |
18 | 18 | ||
19 | RUN yarn install --pure-lockfile --network-timeout 1200000 --network-concurrency 20 \ | 19 | # Install manually client dependencies to apply our network timeout option |
20 | RUN cd client && yarn install --pure-lockfile --network-timeout 1200000 && cd ../ \ | ||
21 | && yarn install --pure-lockfile --network-timeout 1200000 \ | ||
20 | && npm run build \ | 22 | && npm run build \ |
21 | && rm -r ./node_modules ./client/node_modules ./client/.angular \ | 23 | && rm -r ./node_modules ./client/node_modules ./client/.angular \ |
22 | && yarn install --pure-lockfile --production --network-timeout 1200000 --network-concurrency 20 \ | 24 | && yarn install --pure-lockfile --production --network-timeout 1200000 --network-concurrency 20 \ |