fix: entire build

This commit is contained in:
Robert W. Pearce 2023-01-28 14:10:41 +13:00
parent 90a5ead5d2
commit 8ada566a8e
No known key found for this signature in database
GPG key ID: 8EE70FB52D805C55
10 changed files with 997 additions and 123 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM nixos/nix
RUN echo -e '\
allow-import-from-derivation = true\n\
auto-optimise-store = true\n\
experimental-features = nix-command flakes\n\
substituters = https://cache.nixos.org https://cache.iog.io https://cache.zw3rk.com\n\
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=\n\
' >> /etc/nix/nix.conf
WORKDIR /service
COPY . .
# Install cachix if cachix.dhall is included
RUN [[ -f cachix.dhall ]] && \
mkdir -p /root/.config/cachix/ && \
mv cachix.dhall /root/.config/cachix/ && \
nix-env -iA cachix -f "https://cachix.org/api/v1/install" || \
true
RUN nix build --accept-flake-config
CMD ["nix", "run", ".", "watch"]