bigbluebutton-Github/akka-bbb-apps/Dockerfile

25 lines
550 B
Docker
Raw Normal View History

2018-06-15 21:21:03 +08:00
FROM bbb-common-message AS builder
2018-06-15 21:21:03 +08:00
ARG COMMON_VERSION=0.0.1-SNAPSHOT
2018-06-15 21:21:03 +08:00
COPY . /source
RUN cd /source \
&& find -name build.sbt -exec sed -i "s|\(.*org.bigbluebutton.*bbb-common-message[^\"]*\"[ ]*%[ ]*\)\"[^\"]*\"\(.*\)|\1\"$COMMON_VERSION\"\2|g" {} \; \
&& sbt compile
2018-06-15 21:21:03 +08:00
RUN apt-get update \
&& apt-get -y install fakeroot
RUN cd /source \
&& sbt debian:packageBin
# FROM ubuntu:16.04
FROM openjdk:8-jre-slim-stretch
COPY --from=builder /source/target/*.deb /root/
RUN dpkg -i /root/*.deb
CMD ["/usr/share/bbb-apps-akka/bin/bbb-apps-akka"]