Mumble docker container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

9 years ago
  1. FROM alpine:3.2
  2. MAINTAINER Chris Kankiewicz <Chris@ChrisKankiewicz.com>
  3. # Create Mumble directories
  4. ENV MUMBLE_DIR /opt/mumble
  5. ENV CONFIG_DIR /srv/mumble
  6. ENV SCRIPTS_DIR /srv/scripts
  7. RUN mkdir -pv ${MUMBLE_DIR} ${CONFIG_DIR}
  8. # Copy config file
  9. COPY files/config.ini ${CONFIG_DIR}/config.ini
  10. # Copy SuperUser password update script
  11. COPY files/update-pw ${SCRIPTS_DIR}/update-pw
  12. RUN chmod +x ${SCRIPTS_DIR}/update-pw
  13. # Install dependencies
  14. RUN apk add --update ca-certificates bzip2 jq tar wget \
  15. && rm -rf /var/cache/apk/*
  16. # Download and extract Mumble
  17. RUN MUMBLE_VERSION=$(wget -qO- https://api.github.com/repos/mumble-voip/mumble/releases | jq -r '.[0].tag_name') \
  18. && wget -qO- https://github.com/mumble-voip/mumble/releases/download/${MUMBLE_VERSION}/murmur-static_x86-${MUMBLE_VERSION}.tar.bz2 \
  19. | tar -xjv --strip-components=1 -C ${MUMBLE_DIR}
  20. # Expose ports
  21. EXPOSE 64738 64738/udp
  22. # Set volumes
  23. VOLUME ${CONFIG_DIR}
  24. # Default command
  25. CMD ${MUMBLE_DIR}/murmur.x86 -fg -ini ${CONFIG_DIR}/config.ini