Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Oct 18, 2021
1 parent 603fc94 commit 3e77fc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ USER node
# https://github.com/bitwarden/web/commit/$VAULT_VERSION
#
# Using https://github.com/bitwarden/web/releases/tag/v2.23.0
ARG VAULT_VERSION=cfa3d81cf87ed59c471021608b9b922023c825f1
ARG VAULT_VERSION=cfa3d81cf87ed59c471021608b9b922023c825f1 # TODO: When updating to a newer image, remove the package.json patch below

RUN git clone https://github.com/bitwarden/web.git /vault
WORKDIR /vault
Expand All @@ -40,8 +40,9 @@ COPY --chown=node:node apply_patches.sh /apply_patches.sh
RUN bash /apply_patches.sh

# Build
RUN npm ci
RUN npm audit fix || true
RUN sed -i 's/"gulp-google-webfonts": "^4.0.0"/"gulp-google-webfonts": "^4.1.0"/' package.json
RUN npm ci --legacy-peer-deps
RUN npm audit fix --legacy-peer-deps || true
RUN npm run dist

RUN printf '{"version":"%s"}' \
Expand Down
5 changes: 3 additions & 2 deletions package_web_vault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ git submodule update --recursive --init
. ../apply_patches.sh

# Build
npm ci
npm audit fix || true
sed -i 's/"gulp-google-webfonts": "^4.0.0"/"gulp-google-webfonts": "^4.1.0"/' package.json
npm ci --legacy-peer-deps
npm audit fix --legacy-peer-deps || true
npm run dist

# Delete debugging map files, optional
Expand Down

0 comments on commit 3e77fc2

Please sign in to comment.