File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change
1
+ FROM bigtruedata/sbt:0.13.15-2.12.2 AS builder
2
+ WORKDIR /code
3
+ ADD project/ /code/project
4
+ ADD build.sbt /code
5
+
6
+ # # force sbt to load dependencies and compile interface
7
+ RUN mkdir -p src/main/scala && \
8
+ echo "object Main {}" > src/main/scala/Main.scala && \
9
+ sbt compile && rm -rf src
10
+
11
+ # # copy source code and create an assembly jar
12
+ COPY . /code
13
+ RUN sbt assembly
14
+
15
+ # Build main image
1
16
FROM openjdk:alpine
2
17
3
18
LABEL maintainer "Ivan Luzyanin <ivan@acorns.com>"
@@ -9,7 +24,7 @@ RUN addgroup -g 9000 -S code && \
9
24
adduser -S -G code app
10
25
USER app
11
26
12
- COPY codeclimate-scalastyle-assembly-0.1.0.jar /usr/src/app/engine-core.jar
27
+ COPY --from=builder /code/target/scala-2.12/ codeclimate-scalastyle-assembly-0.1.0.jar /usr/src/app/engine-core.jar
13
28
COPY src/main/resources/docker /usr/src/app
14
29
COPY src/main/resources/docker/engine.json /
15
30
Original file line number Diff line number Diff line change 1
1
name := " codeclimate-scalastyle"
2
2
organization in ThisBuild := " codeclimate"
3
3
version in ThisBuild := " 0.1.0"
4
- scalaVersion in ThisBuild := " 2.12.4 "
4
+ scalaVersion in ThisBuild := " 2.12.2 "
5
5
6
6
concurrentRestrictions in Global += Tags .limit(Tags .Test , 1 )
7
7
parallelExecution in Global := false
Original file line number Diff line number Diff line change 1
- sbt.version =0.13.16
1
+ sbt.version =0.13.15
You can’t perform that action at this time.
0 commit comments