aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.stretch
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-12 09:49:31 +0100
committerChocobozzz <me@florianbigard.com>2019-12-12 09:49:31 +0100
commitc82bf36a3f61fe051a2ead506a6f7b90d083bb32 (patch)
tree2b63e77172ae0770c6077882b49f9d41c6803571 /support/docker/production/Dockerfile.stretch
parent3c0d0c669d88361c6fe60c366cb7d5cc7b808b95 (diff)
downloadPeerTube-c82bf36a3f61fe051a2ead506a6f7b90d083bb32.tar.gz
PeerTube-c82bf36a3f61fe051a2ead506a6f7b90d083bb32.tar.zst
PeerTube-c82bf36a3f61fe051a2ead506a6f7b90d083bb32.zip
Docker: stretch -> buster
Diffstat (limited to 'support/docker/production/Dockerfile.stretch')
-rw-r--r--support/docker/production/Dockerfile.stretch46
1 files changed, 0 insertions, 46 deletions
diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch
deleted file mode 100644
index 32c5266c5..000000000
--- a/support/docker/production/Dockerfile.stretch
+++ /dev/null
@@ -1,46 +0,0 @@
1FROM node:10-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 ffmpeg gnupg gosu \
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 /config
37
38VOLUME /data
39VOLUME /config
40
41COPY ./support/docker/production/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
42ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
43
44# Run the application
45CMD ["npm", "start"]
46EXPOSE 9000