aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/dev/Dockerfile
diff options
context:
space:
mode:
authorBenjamin Bouvier <public@benj.me>2018-01-16 23:37:15 +0100
committerChocobozzz <me@florianbigard.com>2018-01-25 11:13:07 +0100
commita585af352c8f78f62a964f81192516ee6a2556e1 (patch)
treed2f6c553924cb6a2d110497343b0851c82ad03ac /support/docker/dev/Dockerfile
parent15dbc134bd92b3b9953d676b6c6bda2d41e4945b (diff)
downloadPeerTube-a585af352c8f78f62a964f81192516ee6a2556e1.tar.gz
PeerTube-a585af352c8f78f62a964f81192516ee6a2556e1.tar.zst
PeerTube-a585af352c8f78f62a964f81192516ee6a2556e1.zip
Fixes #205: Fix Janitor configuration;
Diffstat (limited to 'support/docker/dev/Dockerfile')
-rw-r--r--support/docker/dev/Dockerfile13
1 files changed, 11 insertions, 2 deletions
diff --git a/support/docker/dev/Dockerfile b/support/docker/dev/Dockerfile
index ccad92f6b..8a99496a6 100644
--- a/support/docker/dev/Dockerfile
+++ b/support/docker/dev/Dockerfile
@@ -15,10 +15,19 @@ WORKDIR /home/user/PeerTube
15# Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w). 15# Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w).
16RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf 16RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf
17 17
18# Install dependencies.
19RUN yarn install --pure-lockfile
20
18# Configure Janitor for PeerTube. 21# Configure Janitor for PeerTube.
19ADD janitor.json /home/user/ 22ADD janitor.json /home/user/
20RUN sudo chown user:user /home/user/janitor.json 23RUN sudo chown user:user /home/user/janitor.json
21 24
22# Configure and build PeerTube. 25# Configure and build PeerTube.
23RUN yarn install \ 26ADD create_user.sql /tmp/
24 && npm run build 27RUN sudo service postgresql start && \
28 sudo -u postgres psql --file=/tmp/create_user.sql
29
30ADD supervisord.conf /tmp/supervisord-extra.conf
31RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
32
33EXPOSE 3000 9000