chore: rm docker until I can get the image size down from 8GB

This commit is contained in:
Robert W. Pearce 2023-01-28 20:20:29 +13:00
parent 123bd7ca92
commit 0dfcba3da8
No known key found for this signature in database
GPG key ID: 8EE70FB52D805C55
4 changed files with 0 additions and 43 deletions

View file

@ -1,7 +0,0 @@
.git
_cache
_tmp
dist
dist-newstyle
node_modules
result

View file

@ -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"]

View file

@ -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

View file

@ -1,8 +0,0 @@
services:
app:
build: .
volumes:
- .:/service
- site-vol:/var/site-vol
volumes:
site-vol: {}