]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/Dockerfile.stretch
Add root class if user is logged in
[github/Chocobozzz/PeerTube.git] / support / docker / production / Dockerfile.stretch
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 # Add peertube user
9 RUN groupadd -g 991 peertube \
10 && useradd -u 991 -g peertube -m peertube
11
12 # Download the latest version
13 RUN git clone https://github.com/Chocobozzz/PeerTube /app \
14 && chown -R peertube:peertube /app
15
16 # Install PeerTube
17 USER peertube
18 WORKDIR /app
19
20 RUN yarn install --pure-lockfile \
21 && npm run build
22
23 # Configure PeerTube
24 RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
25 ENV NODE_ENV production
26 ENV NODE_CONFIG_DIR /app/support/docker/production/config
27
28 # Run the application
29 CMD ["npm", "start"]
30 VOLUME ["/data"]
31 EXPOSE 9000