aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/dev/Dockerfile
diff options
context:
space:
mode:
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