diff options
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 | ||