diff options
Diffstat (limited to 'support/docker/production/Dockerfile.stretch')
-rw-r--r-- | support/docker/production/Dockerfile.stretch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch new file mode 100644 index 000000000..c739247a6 --- /dev/null +++ b/support/docker/production/Dockerfile.stretch | |||
@@ -0,0 +1,25 @@ | |||
1 | FROM node:8-stretch | ||
2 | |||
3 | # Install dependencies | ||
4 | RUN apt-get update \ | ||
5 | && apt-get -y install ffmpeg \ | ||
6 | && rm /var/lib/apt/lists/* -fR | ||
7 | |||
8 | # Install the application | ||
9 | WORKDIR /app | ||
10 | |||
11 | COPY . ./ | ||
12 | RUN yarn install --pure-lockfile && npm run build | ||
13 | |||
14 | # Configure the application | ||
15 | RUN groupadd -g 991 peertube \ | ||
16 | && useradd -u 991 -g peertube -d /data -m peertube | ||
17 | USER peertube | ||
18 | |||
19 | ENV NODE_ENV production | ||
20 | ENV NODE_CONFIG_DIR /app/support/docker/production/config | ||
21 | |||
22 | # Run the application | ||
23 | CMD ["npm", "start"] | ||
24 | VOLUME ["/data"] | ||
25 | EXPOSE 9000 | ||