From b8cfb5c0208a42d6af496ac6ee4c90925332f7fb Mon Sep 17 00:00:00 2001 From: James Harton Date: Fri, 25 Aug 2023 19:52:34 +1200 Subject: [PATCH] improvement(elixir): make sure that the volume dirs exist. --- elixir/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/elixir/Dockerfile b/elixir/Dockerfile index 31f9597..0efb6b7 100644 --- a/elixir/Dockerfile +++ b/elixir/Dockerfile @@ -1,6 +1,15 @@ FROM code.harton.nz/james/dev-container/base ARG USERNAME=vscode +ARG USER_UID=1000 +ARG USER_GID=$USER_UID +RUN mkdir /workspace/_build +RUN chown $USER_UID:$USER_GID /workspace/_build +RUN mkdir /workspace/deps +RUN chown $USER_UID:$USER_GID /workspace/deps +RUN mkdir /workspace/.elixir_ls +RUN chown $USER_UID:$USER_GID /workspace/.elixir_ls + USER ${USERNAME} ENV HOME=/home/${USERNAME}