Skip to content

Commit

Permalink
Chore: Update base node image to v18 in Dockerfile to address OS Vuln…
Browse files Browse the repository at this point in the history
…erabilities (#5293)

Fixes b/326121745 🦕
  • Loading branch information
ohmayr authored Feb 23, 2024
1 parent 15ba411 commit 8d14b78
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions packages/auto-approve/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/auto-label/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/blunderbuss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/cherry-pick-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/conventional-commit-lint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/do-not-merge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/failurechecker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/generate-bot/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/generated-files-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/header-checker-lint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/label-sync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/loadtest-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/merge-on-green/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/owl-bot/Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Install git binary and remove unnecessary cache files to keep the
# image size small.
Expand Down
4 changes: 2 additions & 2 deletions packages/owl-bot/Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/owlbot-bootstrapper/common-container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/cli
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/cli
Expand Down
4 changes: 2 additions & 2 deletions packages/policy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/release-trigger/Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

WORKDIR /home/node

Expand All @@ -33,7 +33,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

WORKDIR /home/node

Expand Down
4 changes: 2 additions & 2 deletions packages/repo-metadata-lint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/snippet-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/snippet-bot/Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions packages/sync-repo-settings/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Use the official lightweight Node.js 14 image.
# https://hub.docker.com/_/node
FROM node:14-slim AS BUILD
FROM node:18-slim AS BUILD

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand All @@ -34,7 +34,7 @@ COPY . ./

RUN npm run compile

FROM node:14-slim
FROM node:18-slim

# Create and change to the app directory.
WORKDIR /usr/src/app
Expand Down
Loading

0 comments on commit 8d14b78

Please sign in to comment.