diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-28 13:45:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-28 13:45:24 +0200 |
commit | 45cd28b679d3472392ed5d77dcfd8f442d1565bf (patch) | |
tree | 685a2b74035000b4bba955d290d0c27190b48451 /support | |
parent | 829be6e8b7e9a09f118577745906c19926c20416 (diff) | |
download | PeerTube-45cd28b679d3472392ed5d77dcfd8f442d1565bf.tar.gz PeerTube-45cd28b679d3472392ed5d77dcfd8f442d1565bf.tar.zst PeerTube-45cd28b679d3472392ed5d77dcfd8f442d1565bf.zip |
Remove alpine image
Diffstat (limited to 'support')
-rw-r--r-- | support/docker/production/Dockerfile.alpine | 30 | ||||
-rw-r--r-- | support/docker/production/docker-compose.yml | 2 |
2 files changed, 1 insertions, 31 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 @@ | |||
1 | FROM node:8-alpine | ||
2 | |||
3 | # Install dependencies | ||
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 | ||
6 | |||
7 | # Add peertube user | ||
8 | RUN addgroup -g 991 peertube \ | ||
9 | && adduser -D -u 991 -G peertube peertube | ||
10 | |||
11 | # Download the latest version | ||
12 | RUN git clone https://github.com/Chocobozzz/PeerTube /app \ | ||
13 | && chown -R peertube:peertube /app | ||
14 | |||
15 | # Install PeerTube | ||
16 | USER peertube | ||
17 | WORKDIR /app | ||
18 | |||
19 | RUN yarn install --pure-lockfile \ | ||
20 | && npm run build | ||
21 | |||
22 | # Configure PeerTube | ||
23 | RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml | ||
24 | ENV NODE_ENV production | ||
25 | ENV NODE_CONFIG_DIR /app/support/docker/production/config | ||
26 | |||
27 | # Run the application | ||
28 | CMD ["npm", "start"] | ||
29 | VOLUME ["/data"] | ||
30 | EXPOSE 9000 | ||
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml index d45b0b51a..94dbb68c5 100644 --- a/support/docker/production/docker-compose.yml +++ b/support/docker/production/docker-compose.yml | |||
@@ -6,7 +6,7 @@ services: | |||
6 | build: | 6 | build: |
7 | context: . | 7 | context: . |
8 | dockerfile: ./Dockerfile.stretch | 8 | dockerfile: ./Dockerfile.stretch |
9 | image: peertube:stretch | 9 | image: chocobozzz/peertube:stretch |
10 | environment: | 10 | environment: |
11 | PEERTUBE_HOSTNAME: my.domain.tld | 11 | PEERTUBE_HOSTNAME: my.domain.tld |
12 | PEERTUBE_PORT: 443 | 12 | PEERTUBE_PORT: 443 |