Skip to content

Commit 74a02d0

Browse files
committed
fix: install asdf outside of /config so it doesn't get overridden by volume mount
1 parent 6f50455 commit 74a02d0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ RUN \
2727

2828
# Install ASDF to install custom tools
2929
ARG ASDF_VERSION=0.11.3
30-
RUN bash -c "git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v${ASDF_VERSION} && \
30+
RUN bash -c "git clone https://github.com/asdf-vm/asdf.git /asdf --branch v${ASDF_VERSION} && \
3131
echo 'legacy_version_file = yes' > $HOME/.asdfrc && \
3232
printf 'yarn\njsonlint' > $HOME/.default-npm-packages && \
33-
. $HOME/.asdf/asdf.sh && \
33+
. /asdf/asdf.sh && \
3434
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git && \
3535
asdf install ruby 3.2.2 && \
3636
asdf global ruby 3.2.2 && \

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
. $HOME/.asdf/asdf.sh
3+
. /asdf/asdf.sh
44

55
exec /init "$@"

0 commit comments

Comments
 (0)