From a585af352c8f78f62a964f81192516ee6a2556e1 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 16 Jan 2018 23:37:15 +0100 Subject: Fixes #205: Fix Janitor configuration; --- support/docker/dev/Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'support/docker/dev/Dockerfile') 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 # Configure Cloud9 IDE to use PeerTube's source directory as workspace (-w). RUN sudo sed -i "s/-w \/home\/user/-w \/home\/user\/PeerTube/" /etc/supervisord.conf +# Install dependencies. +RUN yarn install --pure-lockfile + # Configure Janitor for PeerTube. ADD janitor.json /home/user/ RUN sudo chown user:user /home/user/janitor.json # Configure and build PeerTube. -RUN yarn install \ - && npm run build +ADD create_user.sql /tmp/ +RUN sudo service postgresql start && \ + sudo -u postgres psql --file=/tmp/create_user.sql + +ADD supervisord.conf /tmp/supervisord-extra.conf +RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf + +EXPOSE 3000 9000 -- cgit v1.2.3