ActivityPub-federated video streaming platform using P2P directly in your web browser
Run the installation as the peertube user inside the Docker image (#385)
Angristanc7574e8661d6
diff --git a/support/docker/production/Dockerfile.alpine b/support/docker/production/Dockerfile.alpineindex 8ce0bb98b3..58a49d4a0c 100644--- a/support/docker/production/Dockerfile.alpine+++ b/support/docker/production/Dockerfile.alpine@@ -4,19 +4,25 @@ FROM node:8-alpineRUN apk add --no-cache ffmpeg openssl bash make g++ git \&& apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ vips-dev fftw-dev-RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app+# Add peertube user+RUN addgroup -g 991 peertube \+ && adduser -D -u 991 -G peertube peertube-WORKDIR /app-RUN bash -c 'yarn install --pure-lockfile && npm run build'+# Download the latest version+RUN git clone https://github.com/Chocobozzz/PeerTube /app \+ && chown -R peertube:peertube /app-# Configure the application-RUN addgroup -g 991 peertube \- && adduser -D -u 991 -G peertube -h /data peertube+# Install PeerTubeUSER peertube+WORKDIR /app++RUN yarn install --pure-lockfile \+ && npm run build+# Configure PeerTubeRUN cp /app/config/default.yaml /app/support/docker/production/config/default.yamlENV NODE_ENV production-ENV NODE_CONFIG_DIR /app/support/docker/production/config/+ENV NODE_CONFIG_DIR /app/support/docker/production/config# Run the applicationCMD ["npm", "start"]diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretchindex c616194e62..b1905b3a8a 100644--- a/support/docker/production/Dockerfile.stretch+++ b/support/docker/production/Dockerfile.stretch@@ -2,19 +2,25 @@ FROM node:8-stretch# Install dependenciesRUN apt-get update \- && apt-get -y install ffmpeg \- && rm /var/lib/apt/lists/* -fR+ && apt-get -y install ffmpeg \+ && rm /var/lib/apt/lists/* -fR-RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app+# Add peertube user+RUN groupadd -g 991 peertube \+ && useradd -u 991 -g peertube -m peertube-WORKDIR /app-RUN yarn install --pure-lockfile && npm run build+# Download the latest version+RUN git clone https://github.com/Chocobozzz/PeerTube /app \+ && chown -R peertube:peertube /app-# Configure the application-RUN groupadd -g 991 peertube \- && useradd -u 991 -g peertube -d /data -m peertube+# Install PeerTubeUSER peertube+WORKDIR /app++RUN yarn install --pure-lockfile \+ && npm run build+# Configure PeerTubeRUN cp /app/config/default.yaml /app/support/docker/production/config/default.yamlENV NODE_ENV productionENV NODE_CONFIG_DIR /app/support/docker/production/config