]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - support/docker/production/Dockerfile.stretch
Prepare building docker files on docker hub
[github/Chocobozzz/PeerTube.git] / support / docker / production / Dockerfile.stretch
CommitLineData
e8395f02 1FROM node:8-stretch
2
3# Install dependencies
4RUN apt-get update \
5 && apt-get -y install ffmpeg \
6 && rm /var/lib/apt/lists/* -fR
7
95540ed2 8RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app
e8395f02 9
95540ed2 10WORKDIR /app
e8395f02 11RUN yarn install --pure-lockfile && npm run build
12
13# Configure the application
14RUN groupadd -g 991 peertube \
15 && useradd -u 991 -g peertube -d /data -m peertube
16USER peertube
17
95540ed2 18RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
e8395f02 19ENV NODE_ENV production
20ENV NODE_CONFIG_DIR /app/support/docker/production/config
21
22# Run the application
23CMD ["npm", "start"]
24VOLUME ["/data"]
25EXPOSE 9000