Skip to content

Commit

Permalink
fix(Dockerfile.stock-center): add --ignore-engines flag to yarn insta…
Browse files Browse the repository at this point in the history
…ll command to avoid engine compatibility issues

The --ignore-engines flag is added to the yarn install command to
prevent the build from failing due to engine compatibility issues. This
allows the Docker image to be built even if the Node.js version
specified in the package.json file does not match the one in the Docker
image.
  • Loading branch information
cybersiddhu committed Feb 9, 2024
1 parent 43d1f91 commit 8a48ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile.stock-center
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WORKDIR /app
COPY .gitignore .gitignore
COPY --from=builder /app/out/json/ .
COPY --from=builder /app/out/yarn.lock ./yarn.lock
RUN yarn install --network-timeout 1000000
RUN yarn install --ignore-engines --network-timeout 1000000

# Build the project
COPY --from=builder /app/out/full/ .
Expand Down

0 comments on commit 8a48ad1

Please sign in to comment.