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.alpine20
1 files changed, 13 insertions, 7 deletions
diff --git a/support/docker/production/Dockerfile.alpine b/support/docker/production/Dockerfile.alpine
index 8ce0bb98b..58a49d4a0 100644
--- a/support/docker/production/Dockerfile.alpine
+++ b/support/docker/production/Dockerfile.alpine
@@ -4,19 +4,25 @@ 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
7RUN git clone -b master https://github.com/Chocobozzz/PeerTube /app 7# Add peertube user
8RUN addgroup -g 991 peertube \
9 && adduser -D -u 991 -G peertube peertube
8 10
9WORKDIR /app 11# Download the latest version
10RUN bash -c 'yarn install --pure-lockfile && npm run build' 12RUN git clone https://github.com/Chocobozzz/PeerTube /app \
13 && chown -R peertube:peertube /app
11 14
12# Configure the application 15# Install PeerTube
13RUN addgroup -g 991 peertube \
14 && adduser -D -u 991 -G peertube -h /data peertube
15USER peertube 16USER peertube
17WORKDIR /app
18
19RUN yarn install --pure-lockfile \
20 && npm run build
16 21
22# Configure PeerTube
17RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml 23RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
18ENV NODE_ENV production 24ENV NODE_ENV production
19ENV NODE_CONFIG_DIR /app/support/docker/production/config/ 25ENV NODE_CONFIG_DIR /app/support/docker/production/config
20 26
21# Run the application 27# Run the application
22CMD ["npm", "start"] 28CMD ["npm", "start"]