use tar and strip first folders

This commit is contained in:
holzi1005 2024-11-23 19:11:30 +01:00
parent a0ba377e6d
commit 128a9d0365

View file

@ -12,10 +12,9 @@ RUN apk update && apk add libcap
USER node
RUN wget https://github.com/lovasoa/whitebophir/archive/refs/tags/v${VERSION}.zip -O artifact.zip \
&& unzip artifact.zip \
&& mv whitebophir-${VERSION}/* .
&& rm artifact.zip
RUN wget https://github.com/lovasoa/whitebophir/archive/refs/tags/v${VERSION}.tar.gz -O artifact.tar.gz \
&& tar --strip-components=1 -xvzf artifact.tar.gz \
&& rm artifact.tar.gz
RUN npm ci --production