From e82228e4d54e86ea6c674fe874b69da8a6460f83 Mon Sep 17 00:00:00 2001 From: Oliver Caldwell Date: Sat, 12 Feb 2022 16:15:40 +0000 Subject: [PATCH] Better docker dev script --- Dockerfile | 2 -- scripts/docker.sh | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 97e60928..971c53e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,4 @@ RUN add-apt-repository ppa:neovim-ppa/stable RUN apt-get update RUN apt-get install -y neovim -ADD . /root/.local/share/nvim/site/pack/conjure/start/conjure - CMD nvim diff --git a/scripts/docker.sh b/scripts/docker.sh index b899fca8..1832425f 100755 --- a/scripts/docker.sh +++ b/scripts/docker.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +CONJURE_DIR=/root/.local/share/nvim/site/pack/conjure/start/conjure + docker build . -t conjure -docker run -ti --rm conjure +docker run \ + -v $(pwd):$CONJURE_DIR \ + -ti --rm conjure \ + nvim --cmd "cd $CONJURE_DIR" $@