Skip to content

Commit

Permalink
Made Dockerfile multi-stage
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdigital committed May 11, 2019
1 parent ad418f9 commit 70074f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:18.04 as base

ENV SBT_VERSION 1.2.8
ENV SCALA_VERSION 2.12
Expand All @@ -25,6 +25,10 @@ RUN \
ADD . /chromaprint
WORKDIR /chromaprint

ENTRYPOINT ["/bin/bash"]

FROM base as packaged

RUN sbt "; test; package; assembly"

RUN echo "#!/bin/sh\n\
Expand Down

0 comments on commit 70074f9

Please sign in to comment.