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 USER node
RUN wget https://github.com/lovasoa/whitebophir/archive/refs/tags/v${VERSION}.zip -O artifact.zip \ RUN wget https://github.com/lovasoa/whitebophir/archive/refs/tags/v${VERSION}.tar.gz -O artifact.tar.gz \
&& unzip artifact.zip \ && tar --strip-components=1 -xvzf artifact.tar.gz \
&& mv whitebophir-${VERSION}/* . && rm artifact.tar.gz
&& rm artifact.zip
RUN npm ci --production RUN npm ci --production