]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/Dockerfile.alpine
Prepare building docker files on docker hub
[github/Chocobozzz/PeerTube.git] / support / docker / production / Dockerfile.alpine
1 FROM node:8-alpine
2
3 # Install dependencies
4 RUN apk add --no-cache ffmpeg openssl bash make g++ git \
5 && apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ vips-dev fftw-dev
6
7 RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app
8
9 WORKDIR /app
10 RUN bash -c 'yarn install --pure-lockfile && npm run build'
11
12 # Configure the application
13 RUN addgroup -g 991 peertube \
14 && adduser -D -u 991 -G peertube -h /data peertube
15 USER peertube
16
17 RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
18 ENV NODE_ENV production
19 ENV NODE_CONFIG_DIR /app/support/docker/production/config/
20
21 # Run the application
22 CMD ["npm", "start"]
23 VOLUME ["/data"]
24 EXPOSE 9000