make only a shallow clone

This commit is contained in:
Stefan Melmuk 2022-11-02 22:08:43 +01:00
parent 613870ebe6
commit 1c6c4e8cc6
No known key found for this signature in database
GPG key ID: 817020C608FE9C09

View file

@ -31,10 +31,11 @@ USER node
# Using https://github.com/bitwarden/clients/releases/tag/web-v2022.10.2 # Using https://github.com/bitwarden/clients/releases/tag/web-v2022.10.2
ARG VAULT_VERSION=703860f1ac7bad2dfa9a98640a568db26fdcf5ed ARG VAULT_VERSION=703860f1ac7bad2dfa9a98640a568db26fdcf5ed
RUN git clone https://github.com/bitwarden/clients.git /vault
WORKDIR /vault WORKDIR /vault
RUN git init
RUN git -c advice.detachedHead=false checkout "${VAULT_VERSION}" 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 patches /patches
COPY --chown=node:node scripts/apply_patches.sh /apply_patches.sh COPY --chown=node:node scripts/apply_patches.sh /apply_patches.sh