Skip to content

Commit 96ac19f

Browse files
committed
Add package trust commands to Dockerfiles
1 parent e18a5e1 commit 96ac19f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ COPY package.json ./
2727
# Install dependencies
2828
RUN bun install
2929

30+
# Trust all packages
31+
RUN bun pm trust --all
32+
3033
# Copy the rest of the application code
3134
COPY . .
3235

Dockerfile.node

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ COPY package.json ./
2323
# Install dependencies
2424
RUN npm install
2525

26+
# Trust all packages
27+
RUN npm audit fix --force
28+
2629
# Copy the rest of the application code
2730
COPY . .
2831

0 commit comments

Comments
 (0)