From 03c9b0caa33fd414eaf38de5ddd13cf364f02fb3 Mon Sep 17 00:00:00 2001 From: Drew Crawford Date: Wed, 27 Jan 2016 21:31:17 -0600 Subject: [PATCH] Improve cacheability of linux builds in Docker --- Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5bc991b..efc933b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,19 @@ FROM drewcrawford/swift:latest RUN apt-get update && apt-get install --no-install-recommends xz-utils -y ADD https://github.com/AnarchyTools/atbuild/releases/download/0.5.1/atbuild-0.5.1-linux.tar.xz /atbuild.tar.xz RUN tar xf atbuild.tar.xz -C /usr/local -ADD . /NaOH + +#provide some relief for caching +#these lines can actually be commented out, but make the build process more cacheable +#speeding up build times in common cases +# AnarchyDispatch WORKDIR NaOH +ADD AnarchyDispatch /NaOH/AnarchyDispatch +ADD build.atpkg /NaOH/build.atpkg +RUN atbuild AnarchyDispatch.default +# libsodium +ADD libsodium /NaOH/libsodium +RUN atbuild libsodium + + +ADD . /NaOH RUN LD_LIBRARY_PATH=AnarchyDispatch/build/lib atbuild check --overlay linux \ No newline at end of file -- 2.22.0