Pre-build PeerTube again in dev Dockerfile.
authorJan Keromnes <janx@linux.com>
Thu, 25 Jan 2018 11:35:12 +0000 (12:35 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 25 Jan 2018 13:48:06 +0000 (14:48 +0100)
PeerTube pre-build was removed in #207 but is still valuable.

support/docker/dev/Dockerfile

index 8a99496a637916812bd6601bf309ca2b85e8707b..0118a824852427e33bdb76e833d3e0428c3527cd 100644 (file)
@@ -24,8 +24,9 @@ RUN sudo chown user:user /home/user/janitor.json
 
 # Configure and build PeerTube.
 ADD create_user.sql /tmp/
-RUN sudo service postgresql start && \
-    sudo -u postgres psql --file=/tmp/create_user.sql
+RUN sudo service postgresql start \
+ && sudo -u postgres psql --file=/tmp/create_user.sql \
+ && npm run build
 
 ADD supervisord.conf /tmp/supervisord-extra.conf
 RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf