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.alpine | |
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.alpine')
-rw-r--r-- | support/docker/production/Dockerfile.alpine | 6 |
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 | |||
4 | RUN apk add --no-cache ffmpeg openssl bash make g++ git \ | 4 | RUN 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 | 7 | RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app |
8 | WORKDIR /app | ||
9 | 8 | ||
10 | COPY . ./ | 9 | WORKDIR /app |
11 | RUN bash -c 'yarn install --pure-lockfile && npm run build' | 10 | RUN 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 |
16 | USER peertube | 15 | USER peertube |
17 | 16 | ||
17 | RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml | ||
18 | ENV NODE_ENV production | 18 | ENV NODE_ENV production |
19 | ENV NODE_CONFIG_DIR /app/support/docker/production/config/ | 19 | ENV NODE_CONFIG_DIR /app/support/docker/production/config/ |
20 | 20 | ||