27 lines
718 B
Docker
27 lines
718 B
Docker
FROM bbb-fsesl-client AS builder
|
|
|
|
ARG COMMON_VERSION=0.0.1-SNAPSHOT
|
|
|
|
COPY . /source
|
|
|
|
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
|
|
|
|
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/
|
|
|
|
RUN dpkg -i /root/*.deb
|
|
|
|
COPY wait-for-it.sh /usr/local/bin/
|
|
|
|
CMD ["/usr/share/bbb-fsesl-akka/bin/bbb-fsesl-akka"]
|