mirror of
https://github.com/dani-garcia/bw_web_builds.git
synced 2024-12-26 12:28:15 +03:00
Merge pull request #95 from stefan0xC/shallow-clone
make only a shallow clone
This commit is contained in:
commit
a890ed51ba
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue