Dockerfile 730 Bytes
Newer Older
Drew's avatar
Drew committed
1 2
FROM drewcrawford/swift:latest
#install atbuild
3
RUN apt-get update && apt-get install --no-install-recommends xz-utils -y
Drew's avatar
Drew committed
4
ADD https://github.com/AnarchyTools/atbuild/releases/download/0.5.1/atbuild-0.5.1-linux.tar.xz /atbuild.tar.xz
Drew's avatar
Drew committed
5
RUN tar xf atbuild.tar.xz -C /usr/local
6 7 8 9 10

#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
Drew's avatar
Drew committed
11
WORKDIR NaOH
12 13 14 15 16 17 18 19 20
ADD AnarchyDispatch /NaOH/AnarchyDispatch
ADD build.atpkg /NaOH/build.atpkg
RUN atbuild AnarchyDispatch.default
# libsodium
ADD libsodium /NaOH/libsodium
RUN atbuild libsodium


ADD . /NaOH
Drew's avatar
Drew committed
21
RUN LD_LIBRARY_PATH=AnarchyDispatch/build/lib atbuild check --overlay linux