dev-container/rust-elixir/Dockerfile
James Harton 284da2a81b
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
chore: Add rust+elixir container (for Rustler dev).
2024-06-21 16:30:38 +12:00

30 lines
743 B
Docker

ARG ARCH
FROM harton.dev/james/dev-container/base:latest-${ARCH}
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}
RUN asdf asdf plugin add erlang
RUN asdf asdf install erlang latest
RUN asdf asdf global erlang latest
RUN asdf asdf plugin add elixir
RUN asdf asdf install elixir latest
RUN asdf asdf global elixir latest
RUN asdf mix local.rebar --force
RUN asdf mix local.hex --force
RUN asdf asdf plugin add rust
RUN asdf asdf install rust latest