chore: rm docker until I can get the image size down from 8GB
This commit is contained in:
parent
123bd7ca92
commit
0dfcba3da8
4 changed files with 0 additions and 43 deletions
|
@ -1,7 +0,0 @@
|
|||
.git
|
||||
_cache
|
||||
_tmp
|
||||
dist
|
||||
dist-newstyle
|
||||
node_modules
|
||||
result
|
23
Dockerfile
23
Dockerfile
|
@ -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"]
|
|
@ -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
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
services:
|
||||
app:
|
||||
build: .
|
||||
volumes:
|
||||
- .:/service
|
||||
- site-vol:/var/site-vol
|
||||
volumes:
|
||||
site-vol: {}
|
Loading…
Add table
Add a link
Reference in a new issue