diff options
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 | ||