fix asdf path issues

This commit is contained in:
Jamil Bou Kheir
2021-07-12 12:22:47 -07:00
parent 45093e8c36
commit 00d35863fb
2 changed files with 1 additions and 7 deletions

View File

@@ -16,11 +16,8 @@ ENV MIX_ENV prod
WORKDIR /build
COPY .tool-versions .tool-versions
COPY pkg/asdf.sh asdf.sh
RUN ./asdf.sh
ENV PATH "/root/.asdf/bin:/root/.asdf/shims:${PATH}"
RUN echo $PATH
RUN ./asdf.sh
# Dockerfile-friendly build release
RUN mix local.hex --force && \

View File

@@ -1,9 +1,6 @@
#!/usr/bin/env bash
set -e
# Wraps asdf to use within Dockerfiles
. $HOME/.asdf/asdf.sh
asdf plugin-add erlang
asdf plugin-add elixir
asdf plugin-add nodejs