2024-03-20 11:38:34 +13:00
|
|
|
ARG ARCH
|
|
|
|
|
|
|
|
FROM harton.dev/james/dev-container/base:latest-${ARCH}
|
2023-08-24 20:24:33 +12:00
|
|
|
|
2023-08-25 18:58:36 +12:00
|
|
|
ARG USERNAME=vscode
|
2023-08-25 19:52:34 +12:00
|
|
|
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
|
|
|
|
|
2023-08-25 18:58:36 +12:00
|
|
|
USER ${USERNAME}
|
|
|
|
ENV HOME=/home/${USERNAME}
|
|
|
|
|
2023-08-24 20:24:33 +12:00
|
|
|
RUN asdf asdf plugin add erlang
|
|
|
|
RUN asdf asdf install erlang latest
|
2023-08-25 18:58:36 +12:00
|
|
|
RUN asdf asdf global erlang latest
|
|
|
|
|
2023-08-24 20:24:33 +12:00
|
|
|
RUN asdf asdf plugin add elixir
|
2023-08-25 18:58:36 +12:00
|
|
|
RUN asdf asdf install elixir latest
|
|
|
|
RUN asdf asdf global elixir latest
|
|
|
|
|
|
|
|
RUN asdf mix local.rebar --force
|
|
|
|
RUN asdf mix local.hex --force
|