2018-07-26 02:14:55 +08:00
|
|
|
FROM bbb-fsesl-client AS builder
|
2018-01-29 22:32:43 +08:00
|
|
|
|
2018-07-26 02:14:55 +08:00
|
|
|
ARG COMMON_VERSION=0.0.1-SNAPSHOT
|
2018-01-29 22:32:43 +08:00
|
|
|
|
2018-07-26 02:14:55 +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" {} \; \
|
|
|
|
&& find -name build.sbt -exec sed -i "s|\(.*org.bigbluebutton.*bbb-fsesl-client[^\"]*\"[ ]*%[ ]*\)\"[^\"]*\"\(.*\)|\1\"$COMMON_VERSION\"\2|g" {} \; \
|
|
|
|
&& sbt compile
|
|
|
|
|
2018-07-26 02:14:55 +08:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install fakeroot
|
|
|
|
|
|
|
|
RUN cd /source \
|
|
|
|
&& sbt debian:packageBin
|
|
|
|
|
|
|
|
FROM openjdk:8-jre-slim-stretch
|
|
|
|
|
|
|
|
COPY --from=builder /source/target/*.deb /root/
|
2018-01-29 22:32:43 +08:00
|
|
|
|
2018-07-26 02:14:55 +08:00
|
|
|
RUN dpkg -i /root/*.deb
|
2018-01-29 22:32:43 +08:00
|
|
|
|
2018-08-03 04:51:38 +08:00
|
|
|
COPY wait-for-it.sh /usr/local/bin/
|
|
|
|
|
2018-07-26 02:14:55 +08:00
|
|
|
CMD ["/usr/share/bbb-fsesl-akka/bin/bbb-fsesl-akka"]
|