diff options
author | Jan Keromnes <janx@linux.com> | 2017-12-04 10:58:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-04 10:58:02 +0100 |
commit | 492fd28167f770d79a430fc57451b5a9e075d8e7 (patch) | |
tree | 6eafd3b4b9c363b198abe0c8343e42b871b0b968 /support/docker | |
parent | 0273fe8102c1888f9b6e7f9f58f8c59b7ec93402 (diff) | |
download | PeerTube-492fd28167f770d79a430fc57451b5a9e075d8e7.tar.gz PeerTube-492fd28167f770d79a430fc57451b5a9e075d8e7.tar.zst PeerTube-492fd28167f770d79a430fc57451b5a9e075d8e7.zip |
Add a PeerTube development environment Dockerfile compatible with Janitor. (#144)
* Add a PeerTube development environment Dockerfile.
* Clone from develop instead of master in developer Dockerfile.
Diffstat (limited to 'support/docker')
-rw-r--r-- | support/docker/dev/Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/support/docker/dev/Dockerfile b/support/docker/dev/Dockerfile new file mode 100644 index 000000000..2328140fb --- /dev/null +++ b/support/docker/dev/Dockerfile | |||
@@ -0,0 +1,20 @@ | |||
1 | FROM janx/ubuntu-dev | ||
2 | MAINTAINER Jan Keromnes <janx@linux.com> | ||
3 | |||
4 | # Install PeerTube's dependencies. | ||
5 | # Packages are from https://github.com/Chocobozzz/PeerTube#dependencies | ||
6 | RUN sudo apt-get update -q && sudo apt-get install -qy \ | ||
7 | ffmpeg \ | ||
8 | postgresql \ | ||
9 | openssl | ||
10 | |||
11 | # Download PeerTube's source code. | ||
12 | RUN git clone -b develop https://github.com/Chocobozzz/PeerTube /home/user/PeerTube | ||
13 | WORKDIR /home/user/PeerTube | ||
14 | |||
15 | # Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w). | ||
16 | RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf | ||
17 | |||
18 | # Configure and build PeerTube. | ||
19 | RUN yarn install \ | ||
20 | && npm run build | ||