aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.stretch
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-23 11:22:26 +0100
committerChocobozzz <me@florianbigard.com>2018-03-23 11:22:26 +0100
commit95540ed23a2e6ae6d48739f211aa24df57278413 (patch)
treedf45ecb921edc8a00747799912f086d1b911a117 /support/docker/production/Dockerfile.stretch
parenta216c6233d46689f73a7c542e6170555b7f287b6 (diff)
downloadPeerTube-95540ed23a2e6ae6d48739f211aa24df57278413.tar.gz
PeerTube-95540ed23a2e6ae6d48739f211aa24df57278413.tar.zst
PeerTube-95540ed23a2e6ae6d48739f211aa24df57278413.zip
Prepare building docker files on docker hub
Diffstat (limited to 'support/docker/production/Dockerfile.stretch')
-rw-r--r--support/docker/production/Dockerfile.stretch6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch
index c739247a6..c616194e6 100644
--- a/support/docker/production/Dockerfile.stretch
+++ b/support/docker/production/Dockerfile.stretch
@@ -5,10 +5,9 @@ RUN apt-get update \
5 && apt-get -y install ffmpeg \ 5 && apt-get -y install ffmpeg \
6 && rm /var/lib/apt/lists/* -fR 6 && rm /var/lib/apt/lists/* -fR
7 7
8# Install the application 8RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app
9WORKDIR /app
10 9
11COPY . ./ 10WORKDIR /app
12RUN yarn install --pure-lockfile && npm run build 11RUN yarn install --pure-lockfile && npm run build
13 12
14# Configure the application 13# Configure the application
@@ -16,6 +15,7 @@ RUN groupadd -g 991 peertube \
16 && useradd -u 991 -g peertube -d /data -m peertube 15 && useradd -u 991 -g peertube -d /data -m peertube
17USER peertube 16USER peertube
18 17
18RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
19ENV NODE_ENV production 19ENV NODE_ENV production
20ENV NODE_CONFIG_DIR /app/support/docker/production/config 20ENV NODE_CONFIG_DIR /app/support/docker/production/config
21 21