move nvm outside of root

This commit is contained in:
2026-01-03 14:13:18 -05:00
parent 7b05b5ec4c
commit 7ad6fcd4d0

View File

@@ -39,7 +39,7 @@ RUN wget https://github.com/rommapp/romm/archive/refs/tags/$VERSION.tar.gz && \
tar xfz $VERSION.tar.gz --strip-components=1 -C /app/code && rm $VERSION.tar.gz
# Install nvm
ENV NVM_DIR="/root/.nvm"
ENV NVM_DIR="/app/code/.nvm"
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 18.20.8 \