From 0dfcba3da88160317447e7fae25bfd85dccaeaad Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Sat, 28 Jan 2023 20:20:29 +1300 Subject: [PATCH] chore: rm docker until I can get the image size down from 8GB --- .dockerignore | 7 ------- Dockerfile | 23 ----------------------- README.md | 5 ----- docker-compose.yml | 8 -------- 4 files changed, 43 deletions(-) delete mode 100644 .dockerignore delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index ad2821e..0000000 --- a/.dockerignore +++ /dev/null @@ -1,7 +0,0 @@ -.git -_cache -_tmp -dist -dist-newstyle -node_modules -result diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b12a4ac..0000000 --- a/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -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"] diff --git a/README.md b/README.md index 166ec5b..0945956 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,6 @@ ## Features -* Can be ran with Nix or through a [Docker](https://www.docker.com) container - running Nix. If you're using Docker, then prefix your commands like `docker - compose run --rm app nix build`, and if you just want to start the hakyll dev - server, all you need to run is `docker-compose build` and then `docker-compose - up` * Build your site into the `./result/dist` folder: ``` λ nix build diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 933ffc3..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,8 +0,0 @@ -services: - app: - build: . - volumes: - - .:/service - - site-vol:/var/site-vol -volumes: - site-vol: {}