use tar and strip first dir

This commit is contained in:
2026-01-03 11:50:59 -05:00
parent e52f8750b8
commit b9eedaee93

View File

@@ -31,13 +31,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Clone release
RUN wget https://github.com/rommapp/romm/archive/refs/tags/$VERSION.zip && \
unzip $VERSION.zip -d /app/code && rm $VERSION.zip
tar xfz $VERSION.zip --strip-components=1 -C /app/code && rm $VERSION.zip
# Install nvm
ENV NVM_DIR="/root/.nvm"