Skip to content
Snippets Groups Projects
Dockerfile 353 B
Newer Older
FROM sbt:0.13.8

ARG COMMON_VERSION

COPY . /bbb-common-message

RUN cd /bbb-common-message \
 && sed -i "s|\(version := \)\".*|\1\"$COMMON_VERSION\"|g" build.sbt \
 && echo 'publishTo := Some(Resolver.file("file",  new File(Path.userHome.absolutePath+"/.m2/repository")))' | tee -a build.sbt \
 && sbt compile \
 && sbt publish \
 && sbt publishLocal