Commit 03c9b0ca authored by Drew's avatar Drew

Improve cacheability of linux builds in Docker

parent 609a4339
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment