Skip to content

Commit 95d9225

Browse files
committed
Optimize built image size
1 parent 3be3583 commit 95d9225

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ RUN \
2828
apk del .build-dependencies && \
2929
rm -rf "/tmp/"*
3030

31-
WORKDIR /root
32-
3331
RUN \
34-
sbt sbtVersion
32+
sbt -Dsbt.rootdir=true -batch sbtVersion && \
33+
rm -rf project target
34+
35+
WORKDIR /root

0 commit comments

Comments
 (0)