summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: e8db06bba6015447e28e88530f70cae23e9437f6 (plain)
  1. ## re-build:
  2. # docker tag bjoernr/voctocore:latest bjoernr/voctocore:old; docker build -t bjoernr/voctocore ./voctocore-docker && docker rmi bjoernr/voctocore:old
  3. ## build:
  4. # docker build -t bjoernr/voctocore ./voctocore-docker
  5. ## run:
  6. # docker run -it --rm bjoernr/voctocore
  7. # docker run -it --rm -v /some/dir:/video
  8. # -p 9999:9999 -p 10000:10000 -p 10001:10001 -p 10002:10002 -p 11000:11000 -p 12000:12000 \
  9. # -p 13000:13000 -p 13001:13001 -p 13002:13002 -p 14000:14000 -p 15000:15000 -p 16000:16000 \
  10. # -p 17000:17000 -p 17001:17001 -p 17002:17002 -p 18000:18000 --name=voctocore bjoernr/voctocore
  11. FROM ubuntu:wily
  12. MAINTAINER Bjoern Riemer <bjoern.riemer@web.de>
  13. ENV DEBIAN_FRONTEND noninteractive
  14. ENV uid 1000
  15. ENV gid 1000
  16. RUN useradd -m voc
  17. RUN apt-get update \
  18. && apt-get install -y --no-install-recommends \
  19. gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
  20. gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer1.0-0 python3 python3-gi gir1.2-gstreamer-1.0 \
  21. && apt-get install -y git wget \
  22. && apt-get clean
  23. # stuff for the GUI
  24. RUN apt-get update \
  25. && apt-get install -y gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0 \
  26. ffmpeg \
  27. && apt-get clean
  28. RUN wget -q https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64 -O /bin/gosu && chmod +x /bin/gosu
  29. #RUN cd /opt && git clone https://github.com/voc/voctomix.git
  30. RUN mkdir -p /opt/voctomix
  31. EXPOSE 9998 9999 10000 10001 10002 11000 12000 13000 13001 13002 14000 15000 16000 17000 17001 17002 18000
  32. VOLUME /video
  33. WORKDIR /opt/voctomix
  34. COPY . /opt/voctomix/
  35. RUN sed -i 's/localhost/corehost/g' voctogui/default-config.ini \
  36. && find /opt/voctomix/example-scripts/ -type f -exec sed -i 's/localhost/corehost/g' {} \;
  37. ENTRYPOINT ["/opt/voctomix/docker-ep.sh"]
  38. CMD ["help"]