aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.alpine
diff options
context:
space:
mode:
Diffstat (limited to 'support/docker/production/Dockerfile.alpine')
-rw-r--r--support/docker/production/Dockerfile.alpine6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/docker/production/Dockerfile.alpine b/support/docker/production/Dockerfile.alpine
index 939b2d23b..8ce0bb98b 100644
--- a/support/docker/production/Dockerfile.alpine
+++ b/support/docker/production/Dockerfile.alpine
@@ -4,10 +4,9 @@ FROM node:8-alpine
4RUN apk add --no-cache ffmpeg openssl bash make g++ git \ 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 5 && apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ vips-dev fftw-dev
6 6
7# Install the application 7RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app
8WORKDIR /app
9 8
10COPY . ./ 9WORKDIR /app
11RUN bash -c 'yarn install --pure-lockfile && npm run build' 10RUN bash -c 'yarn install --pure-lockfile && npm run build'
12 11
13# Configure the application 12# Configure the application
@@ -15,6 +14,7 @@ RUN addgroup -g 991 peertube \
15 && adduser -D -u 991 -G peertube -h /data peertube 14 && adduser -D -u 991 -G peertube -h /data peertube
16USER peertube 15USER peertube
17 16
17RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
18ENV NODE_ENV production 18ENV NODE_ENV production
19ENV NODE_CONFIG_DIR /app/support/docker/production/config/ 19ENV NODE_CONFIG_DIR /app/support/docker/production/config/
20 20