diff options
author | Benjamin Bouvier <public@benj.me> | 2018-01-16 23:37:15 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-25 11:13:07 +0100 |
commit | a585af352c8f78f62a964f81192516ee6a2556e1 (patch) | |
tree | d2f6c553924cb6a2d110497343b0851c82ad03ac /support/docker/dev/Dockerfile | |
parent | 15dbc134bd92b3b9953d676b6c6bda2d41e4945b (diff) | |
download | PeerTube-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/Dockerfile | 13 |
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). |
16 | RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf | 16 | RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf |
17 | 17 | ||
18 | # Install dependencies. | ||
19 | RUN yarn install --pure-lockfile | ||
20 | |||
18 | # Configure Janitor for PeerTube. | 21 | # Configure Janitor for PeerTube. |
19 | ADD janitor.json /home/user/ | 22 | ADD janitor.json /home/user/ |
20 | RUN sudo chown user:user /home/user/janitor.json | 23 | RUN sudo chown user:user /home/user/janitor.json |
21 | 24 | ||
22 | # Configure and build PeerTube. | 25 | # Configure and build PeerTube. |
23 | RUN yarn install \ | 26 | ADD create_user.sql /tmp/ |
24 | && npm run build | 27 | RUN sudo service postgresql start && \ |
28 | sudo -u postgres psql --file=/tmp/create_user.sql | ||
29 | |||
30 | ADD supervisord.conf /tmp/supervisord-extra.conf | ||
31 | RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf | ||
32 | |||
33 | EXPOSE 3000 9000 | ||