]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - support/docker/production/Dockerfile.alpine
Proxify local storage and handle if it is unavailable
[github/Chocobozzz/PeerTube.git] / support / docker / production / Dockerfile.alpine
CommitLineData
e8395f02 1FROM node:8-alpine
2
3# Install dependencies
4RUN 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
95540ed2 7RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app
e8395f02 8
95540ed2 9WORKDIR /app
e8395f02 10RUN bash -c 'yarn install --pure-lockfile && npm run build'
11
12# Configure the application
13RUN addgroup -g 991 peertube \
14 && adduser -D -u 991 -G peertube -h /data peertube
15USER peertube
16
95540ed2 17RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
e8395f02 18ENV NODE_ENV production
19ENV NODE_CONFIG_DIR /app/support/docker/production/config/
20
21# Run the application
22CMD ["npm", "start"]
23VOLUME ["/data"]
24EXPOSE 9000