]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - support/docker/production/Dockerfile.alpine
Add a hover effect on left menu links (#418) (#425)
[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
c7574e86
A
7# Add peertube user
8RUN addgroup -g 991 peertube \
9 && adduser -D -u 991 -G peertube peertube
e8395f02 10
c7574e86
A
11# Download the latest version
12RUN git clone https://github.com/Chocobozzz/PeerTube /app \
13 && chown -R peertube:peertube /app
e8395f02 14
c7574e86 15# Install PeerTube
e8395f02 16USER peertube
c7574e86
A
17WORKDIR /app
18
19RUN yarn install --pure-lockfile \
20 && npm run build
e8395f02 21
c7574e86 22# Configure PeerTube
95540ed2 23RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
e8395f02 24ENV NODE_ENV production
c7574e86 25ENV NODE_CONFIG_DIR /app/support/docker/production/config
e8395f02 26
27# Run the application
28CMD ["npm", "start"]
29VOLUME ["/data"]
30EXPOSE 9000