Skip to content

Instantly share code, notes, and snippets.

@ddunkin
Created September 30, 2017 14:44
Show Gist options
  • Save ddunkin/455cb8fb104820640a832b499ec67f10 to your computer and use it in GitHub Desktop.
Save ddunkin/455cb8fb104820640a832b499ec67f10 to your computer and use it in GitHub Desktop.
Red5 dockerfile
#
# Red5 + Java 8 Dockerfile
#
# forked from https://github.com/Red5/docker
#
FROM java:8
MAINTAINER Paul Gregoire <[email protected]>
ENV RED5_VERSION 1.0.9-RELEASE
# Define RED5_HOME variable
ENV RED5_HOME /opt/red5
RUN mkdir -p $RED5_HOME
RUN wget -q https://github.com/Red5/red5-server/releases/download/v${RED5_VERSION}/red5-server-${RED5_VERSION}.tar.gz -O red5.tar.gz && \
tar -xf red5.tar.gz --strip 1 -C ${RED5_HOME}
# https://docs.docker.com/userguide/dockervolumes/
VOLUME [ $RED5_HOME ]
WORKDIR $RED5_HOME
EXPOSE 843 1935 5080 5443 8081 8443
ENTRYPOINT ["./red5.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment