diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-23 11:22:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-23 11:22:26 +0100 |
commit | 95540ed23a2e6ae6d48739f211aa24df57278413 (patch) | |
tree | df45ecb921edc8a00747799912f086d1b911a117 /support/docker/production/Dockerfile.stretch | |
parent | a216c6233d46689f73a7c542e6170555b7f287b6 (diff) | |
download | PeerTube-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.stretch | 6 |
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 | 8 | RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app |
9 | WORKDIR /app | ||
10 | 9 | ||
11 | COPY . ./ | 10 | WORKDIR /app |
12 | RUN yarn install --pure-lockfile && npm run build | 11 | RUN 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 |
17 | USER peertube | 16 | USER peertube |
18 | 17 | ||
18 | RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml | ||
19 | ENV NODE_ENV production | 19 | ENV NODE_ENV production |
20 | ENV NODE_CONFIG_DIR /app/support/docker/production/config | 20 | ENV NODE_CONFIG_DIR /app/support/docker/production/config |
21 | 21 | ||