aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.stretch
blob: c616194e629205898f05afe91bdf993569e8bf74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM node:8-stretch

# Install dependencies
RUN apt-get update \
 && apt-get -y install ffmpeg \
 && rm /var/lib/apt/lists/* -fR

RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app

WORKDIR /app
RUN yarn install --pure-lockfile && npm run build

# Configure the application
RUN groupadd -g 991 peertube \
 && useradd -u 991 -g peertube -d /data -m peertube
USER peertube

RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
ENV NODE_ENV production
ENV NODE_CONFIG_DIR /app/support/docker/production/config

# Run the application
CMD ["npm", "start"]
VOLUME ["/data"]
EXPOSE 9000