aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-01-04 23:14:25 +0000
committers-ol <s+removethis@s-ol.nu>2022-01-04 23:14:25 +0000
commitc7577d7d85cfec937194cf0fe869ce3d7f87559e (patch)
tree0670861235513b2382b4ce9b039afe0d40a9a46d
parentadd iso-kb-explorer (diff)
downloadredirectly-c7577d7d85cfec937194cf0fe869ce3d7f87559e.tar.gz
redirectly-c7577d7d85cfec937194cf0fe869ce3d7f87559e.zip
better Dockerfile caching
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index a77f81a..2229268 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,6 +2,8 @@ FROM java:8-alpine AS build-env
ADD https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein /bin/lein
RUN apk update && apk add bash openssl
RUN /bin/chmod +x /bin/lein && lein
+COPY project.clj /build/
+RUN cd /build && lein deps
COPY . /build
RUN cd /build && lein uberjar