forked from Red5/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 742 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (22 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Red5 + Corretto 8 Dockerfile
#
# https://github.com/Red5/docker
# https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/docker-install.html
#
FROM public.ecr.aws/ews-network/amazoncorretto:11
ENV RED5_VERSION 1.2.6
# Define RED5_HOME variable
ENV RED5_HOME /opt/red5
RUN mkdir -p $RED5_HOME
RUN yum install -y wget tar gzip
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 -xzf red5.tar.gz && \
mv red5-server/* ${RED5_HOME} && \
rm -rf red5*
ADD red5.sh ${RED5_HOME}
# https://docs.docker.com/userguide/dockervolumes/
VOLUME [ $RED5_HOME ]
WORKDIR /opt/red5
EXPOSE 843 1935 5080 5443 8081 8443
ENTRYPOINT ["./red5.sh"]