From 7465b394f4aa9d7b3aae65eb7f7b2796e3199c59 Mon Sep 17 00:00:00 2001 From: Job79 Date: Sun, 29 Sep 2024 11:29:24 +0200 Subject: [PATCH] feat: keep cache in a volume --- Containerfile | 2 +- enter.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 70c29a5..999f889 100644 --- a/Containerfile +++ b/Containerfile @@ -19,5 +19,5 @@ COPY config/nvim/lazyvim.json /home/user/.config/nvim/lazyvim.json # === setup container === ENV TZ="Europe/Amsterdam" -VOLUME /home/user/.local /home/user/.config/github-copilot +VOLUME /home/user/.local /home/user/.cache /home/user/.config/github-copilot CMD ["bash"] diff --git a/enter.sh b/enter.sh index cf79c15..62874ca 100755 --- a/enter.sh +++ b/enter.sh @@ -11,6 +11,7 @@ podman run -it \ -v ~/.config/git:/home/user/.config/git \ -v "$name"-copilot:/home/user/.config/github-copilot \ -v "$name"-local:/home/user/.local \ + -v "$name"-cache:/home/user/.cache \ --security-opt label=disable \ --userns=keep-id \ git.plabble.org/job79/dev:latest