1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

update red5-arm

This commit is contained in:
kev 2018-01-02 23:28:05 +08:00
parent 554009dd9d
commit 6a79f3ba30
3 changed files with 34 additions and 34 deletions

View File

@ -2,7 +2,7 @@
# Dockerfile for red5-arm
#
FROM armhf/debian:jessie
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV RED5_VERSION 1.0.9
@ -12,17 +12,11 @@ ENV RED5_URL https://github.com/Red5/red5-server/releases/download/v${RED5_VERSI
WORKDIR /opt/red5
RUN set -xe \
&& echo 'deb http://httpredir.debian.org/debian jessie-backports main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y ca-certificates-java \
curl \
openjdk-8-jre-headless \
&& /var/lib/dpkg/info/ca-certificates-java.postinst configure \
&& apk add --no-cache --progress bash curl openjdk8-jre tar \
&& curl -sSL ${RED5_URL} | tar xz --strip 1 \
&& apt-get remove -y curl \
&& rm -rf /var/lib/apt/lists/*
&& apk del curl tar
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-armhf/jre
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre
ENV PATH $PATH:$JAVA_HOME/bin
EXPOSE 843 1935 5080 5443 8081 8443

View File

@ -1,24 +0,0 @@
#
# Dockerfile for red5-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV RED5_VERSION 1.0.9
ENV RED5_FILE red5-server-${RED5_VERSION}-RELEASE.tar.gz
ENV RED5_URL https://github.com/Red5/red5-server/releases/download/v${RED5_VERSION}-RELEASE/${RED5_FILE}
WORKDIR /opt/red5
RUN set -xe \
&& apk add --no-cache --progress bash curl openjdk8-jre tar \
&& curl -sSL ${RED5_URL} | tar xz --strip 1 \
&& apk del curl tar
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre
ENV PATH $PATH:$JAVA_HOME/bin
EXPOSE 843 1935 5080 5443 8081 8443
ENTRYPOINT ["./red5.sh"]

View File

@ -0,0 +1,30 @@
#
# Dockerfile for red5-arm
#
FROM armhf/debian:jessie
MAINTAINER EasyPi Software Foundation
ENV RED5_VERSION 1.0.9
ENV RED5_FILE red5-server-${RED5_VERSION}-RELEASE.tar.gz
ENV RED5_URL https://github.com/Red5/red5-server/releases/download/v${RED5_VERSION}-RELEASE/${RED5_FILE}
WORKDIR /opt/red5
RUN set -xe \
&& echo 'deb http://httpredir.debian.org/debian jessie-backports main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y ca-certificates-java \
curl \
openjdk-8-jre-headless \
&& /var/lib/dpkg/info/ca-certificates-java.postinst configure \
&& curl -sSL ${RED5_URL} | tar xz --strip 1 \
&& apt-get remove -y curl \
&& rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-armhf/jre
ENV PATH $PATH:$JAVA_HOME/bin
EXPOSE 843 1935 5080 5443 8081 8443
ENTRYPOINT ["./red5.sh"]