Merge pull request #95 from stefan0xC/shallow-clone

make only a shallow clone
This commit is contained in:
Daniel García 2022-11-09 22:19:14 +01:00 committed by GitHub
commit a890ed51ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,10 +31,11 @@ USER node
# Using https://github.com/bitwarden/clients/releases/tag/web-v2022.10.2
ARG VAULT_VERSION=703860f1ac7bad2dfa9a98640a568db26fdcf5ed
RUN git clone https://github.com/bitwarden/clients.git /vault
WORKDIR /vault
RUN git -c advice.detachedHead=false checkout "${VAULT_VERSION}"
RUN git init
RUN git remote add origin https://github.com/bitwarden/clients.git
RUN git fetch --depth 1 origin "${VAULT_VERSION}"
RUN git -c advice.detachedHead=false checkout FETCH_HEAD
COPY --chown=node:node patches /patches
COPY --chown=node:node scripts/apply_patches.sh /apply_patches.sh