aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.buster
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-16 17:03:44 +0100
committerChocobozzz <me@florianbigard.com>2021-11-16 17:03:44 +0100
commit1606ac207dd276dd2ad9971608ff7320d2b8ffeb (patch)
treebe240d8cd7a6d2bafe6fe8abaed9b577db41a4cd /support/docker/production/Dockerfile.buster
parent9c7cf0072ffbfff7e1d3276af9123d9c5a3a0aa6 (diff)
downloadPeerTube-1606ac207dd276dd2ad9971608ff7320d2b8ffeb.tar.gz
PeerTube-1606ac207dd276dd2ad9971608ff7320d2b8ffeb.tar.zst
PeerTube-1606ac207dd276dd2ad9971608ff7320d2b8ffeb.zip
Migrate docker image to bullseye
Diffstat (limited to 'support/docker/production/Dockerfile.buster')
-rw-r--r--support/docker/production/Dockerfile.buster49
1 files changed, 0 insertions, 49 deletions
diff --git a/support/docker/production/Dockerfile.buster b/support/docker/production/Dockerfile.buster
deleted file mode 100644
index 163c514f5..000000000
--- a/support/docker/production/Dockerfile.buster
+++ /dev/null
@@ -1,49 +0,0 @@
1FROM node:12-buster-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)
6ARG NPM_RUN_BUILD_OPTS
7
8# Install dependencies
9RUN apt update \
10 && apt install -y --no-install-recommends openssl ffmpeg python ca-certificates gnupg gosu build-essential curl \
11 && gosu nobody true \
12 && rm /var/lib/apt/lists/* -fR
13
14# Add peertube user
15RUN groupadd -r peertube \
16 && useradd -r -g peertube -m peertube
17
18# Install PeerTube
19COPY --chown=peertube:peertube . /app
20WORKDIR /app
21
22USER peertube
23
24RUN yarn install --pure-lockfile \
25 && npm run build -- $NPM_RUN_BUILD_OPTS \
26 && rm -r ./node_modules ./client/node_modules \
27 && yarn install --pure-lockfile --production \
28 && yarn cache clean
29
30USER root
31
32RUN mkdir /data /config
33RUN chown -R peertube:peertube /data /config
34
35ENV NODE_ENV production
36ENV NODE_CONFIG_DIR /app/config:/app/support/docker/production/config:/config
37ENV PEERTUBE_LOCAL_CONFIG /config
38
39VOLUME /data
40VOLUME /config
41
42COPY ./support/docker/production/entrypoint.sh /usr/local/bin/entrypoint.sh
43ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
44
45# Expose API and RTMP
46EXPOSE 9000 1935
47
48# Run the application
49CMD ["npm", "start"]