Dockerfile 955 B

1234567891011121314151617181920212223242526272829303132
  1. FROM janitortechnology/ubuntu-dev
  2. # Install PeerTube's dependencies.
  3. # Packages are from https://github.com/Chocobozzz/PeerTube#dependencies
  4. RUN sudo apt-get update -q && sudo apt-get install -qy \
  5. ffmpeg \
  6. postgresql \
  7. openssl
  8. # Download PeerTube's source code.
  9. RUN git clone -b develop https://github.com/Chocobozzz/PeerTube /home/user/PeerTube
  10. WORKDIR /home/user/PeerTube
  11. # Configure the IDEs to use Janitor's source directory as workspace.
  12. ENV WORKSPACE /home/user/PeerTube/
  13. # Install dependencies.
  14. RUN yarn install --pure-lockfile
  15. # Configure Janitor for PeerTube.
  16. COPY --chown=user:user janitor.json /home/user/
  17. # Configure and build PeerTube.
  18. COPY create_user.sql /tmp/
  19. RUN sudo service postgresql start \
  20. && sudo -u postgres psql --file=/tmp/create_user.sql \
  21. && npm run build
  22. COPY --chown=user:user supervisord.conf /tmp/supervisord-extra.conf
  23. RUN cat /tmp/supervisord-extra.conf | sudo tee -a /etc/supervisord.conf
  24. EXPOSE 3000 9000