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.alpine30
1 files changed, 0 insertions, 30 deletions
diff --git a/support/docker/production/Dockerfile.alpine b/support/docker/production/Dockerfile.alpine
deleted file mode 100644
index 58a49d4a0..000000000
--- a/support/docker/production/Dockerfile.alpine
+++ /dev/null
@@ -1,30 +0,0 @@
1FROM node:8-alpine
2
3# Install dependencies
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
6
7# Add peertube user
8RUN addgroup -g 991 peertube \
9 && adduser -D -u 991 -G peertube peertube
10
11# Download the latest version
12RUN git clone https://github.com/Chocobozzz/PeerTube /app \
13 && chown -R peertube:peertube /app
14
15# Install PeerTube
16USER peertube
17WORKDIR /app
18
19RUN yarn install --pure-lockfile \
20 && npm run build
21
22# Configure PeerTube
23RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
24ENV NODE_ENV production
25ENV NODE_CONFIG_DIR /app/support/docker/production/config
26
27# Run the application
28CMD ["npm", "start"]
29VOLUME ["/data"]
30EXPOSE 9000