]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/Dockerfile.stretch
c616194e629205898f05afe91bdf993569e8bf74
[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 RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app
9
10 WORKDIR /app
11 RUN yarn install --pure-lockfile && npm run build
12
13 # Configure the application
14 RUN groupadd -g 991 peertube \
15 && useradd -u 991 -g peertube -d /data -m peertube
16 USER peertube
17
18 RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
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