Skip to content

Commit 1cf0be6

Browse files
authored
Merge pull request #9040 from BitGo/gokuldevaraju330/wcn-972-docker-build-fix-sfw-flake-build-context-optimizations
fix(express): fix sfw flake and reduce Docker build context
2 parents c0b8a69 + 09dbc1b commit 1cf0be6

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.git
12
node_modules/
23
.gitignore
34
.npmignore

.github/renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
"extends": ["github>BitGo/gha-renovate-bot//presets/default"],
44
"baseBranches": ["master"],
55
"enabledManagers": ["github-actions", "regex", "npm"],
6+
"customManagers": [
7+
{
8+
"description": "Track sfw version pinned in Dockerfile",
9+
"customType": "regex",
10+
"fileMatch": ["(^|/)Dockerfile$"],
11+
"matchStrings": ["sfw@(?<currentValue>[\\d.]+)"],
12+
"depNameTemplate": "sfw",
13+
"datasourceTemplate": "npm"
14+
}
15+
],
616
"packageRules": [
717
{
818
"description": "Disable all npm dependencies by default",

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FROM node:22.22.0-bookworm-slim@sha256:f86be15afa9a8277608e141ce2a8aa55d3d9c4084
1616
ARG SOCKET_SECURITY_MODE=monitor
1717
ENV SOCKET_SECURITY_MODE=${SOCKET_SECURITY_MODE}
1818
RUN apt-get update && apt-get install -y git python3 make g++ libtool autoconf automake
19-
RUN npm i -g sfw
19+
RUN npm i -g --no-fund sfw@2.0.6 && sfw true
2020
WORKDIR /tmp/bitgo
2121
COPY --from=filter-packages-json /tmp/bitgo .
2222
# (skip postinstall) https://github.com/yarnpkg/yarn/issues/4100#issuecomment-388944260

0 commit comments

Comments
 (0)