2018-06-15 21:21:03 +08:00
|
|
|
FROM bbb-common-message AS builder
|
2018-01-29 22:32:43 +08:00
|
|
|
|
2018-06-15 21:21:03 +08:00
|
|
|
ARG COMMON_VERSION=0.0.1-SNAPSHOT
|
2018-01-29 22:32:43 +08:00
|
|
|
|
2018-06-15 21:21:03 +08:00
|
|
|
COPY . /source
|
2018-01-29 22:32:43 +08:00
|
|
|
|
|
|
|
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"]
|