Skip to content

Commit

Permalink
bump: update node base image in Dockerfiles to 18-bookworm-slim (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlugter authored Aug 23, 2023
1 parent ba842f2 commit 4a8b652
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions npm-js/create-kalix-entity/template/base-js/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions npm-js/create-kalix-entity/template/base-ts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-customer-registry-quickstart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-customer-registry/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
WORKDIR /home/node
RUN apt-get update && apt-get install -y curl unzip
COPY sdk sdk
Expand All @@ -10,7 +10,7 @@ COPY samples/js/js-customer-registry samples/js/js-customer-registry
RUN cd samples/js/js-customer-registry && npm run build
RUN cd samples/js/js-customer-registry && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/samples/js/js-customer-registry
USER node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-doc-snippets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-eventsourced-shopping-cart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-replicated-entity-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
WORKDIR /home/node
RUN apt-get update && apt-get install -y curl unzip
COPY sdk sdk
Expand All @@ -10,7 +10,7 @@ COPY samples/js/js-replicated-entity-example samples/js/js-replicated-entity-exa
RUN cd samples/js/js-replicated-entity-example && npm run build
RUN cd samples/js/js-replicated-entity-example && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/samples/js/js-replicated-entity-example
USER node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-replicated-entity-shopping-cart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-shopping-cart-quickstart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-valueentity-shopping-cart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/js-views-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
WORKDIR /home/node
RUN apt-get update && apt-get install -y curl unzip
COPY sdk sdk
Expand All @@ -10,7 +10,7 @@ COPY samples/js/js-views-example samples/js/js-views-example
RUN cd samples/js/js-views-example && npm run build
RUN cd samples/js/js-views-example && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/samples/js/js-views-example
USER node
Expand Down
4 changes: 2 additions & 2 deletions samples/js/valueentity-counter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-customer-registry-quickstart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-customer-registry/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
WORKDIR /home/node
RUN apt-get update && apt-get install -y curl unzip
COPY samples/ts/ts-customer-registry/package*.json samples/ts/ts-customer-registry/
Expand All @@ -7,7 +7,7 @@ COPY samples/ts/ts-customer-registry samples/ts/ts-customer-registry
RUN cd samples/ts/ts-customer-registry && npm run build
RUN cd samples/ts/ts-customer-registry && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/samples/ts/ts-customer-registry
USER node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-eventsourced-shopping-cart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-replicated-entity-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
WORKDIR /home/node
RUN apt-get update && apt-get install -y curl unzip
COPY samples/ts/ts-replicated-entity-example/package*.json samples/ts/ts-replicated-entity-example/
Expand All @@ -7,7 +7,7 @@ COPY samples/ts/ts-replicated-entity-example samples/ts/ts-replicated-entity-exa
RUN cd samples/ts/ts-replicated-entity-example && npm run build
RUN cd samples/ts/ts-replicated-entity-example && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/samples/ts/ts-replicated-entity-example
USER node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-replicated-entity-shopping-cart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-shopping-cart-quickstart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-valueentity-counter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-valueentity-shopping-cart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://docs.docker.com/develop/develop-images/multistage-build/

# Stage 1: Downloading dependencies and building the application
FROM node:14.19-buster-slim AS builder
FROM node:18-bookworm-slim AS builder

RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*

Expand All @@ -22,7 +22,7 @@ RUN npm run build
RUN npm prune --production

# Stage 2: Building the production image
FROM node:14.19-buster-slim
FROM node:18-bookworm-slim

# Set the working directory
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions samples/ts/ts-views-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
WORKDIR /home/node
RUN apt-get update && apt-get install -y curl unzip
COPY samples/ts/ts-views-example/package*.json samples/ts/ts-views-example/
Expand All @@ -7,7 +7,7 @@ COPY samples/ts/ts-views-example samples/ts/ts-views-example
RUN cd samples/ts/ts-views-example && npm run build
RUN cd samples/ts/ts-views-example && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/samples/ts/ts-views-example
USER node
Expand Down
4 changes: 2 additions & 2 deletions tck/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-buster-slim AS builder
FROM node:18-bookworm-slim AS builder
RUN apt-get update && apt-get install -y curl unzip
WORKDIR /home/node
USER node
Expand All @@ -12,7 +12,7 @@ COPY --chown=node tck tck
RUN cd tck && npm run build
RUN cd tck && npm prune --production

FROM node:14-buster-slim
FROM node:18-bookworm-slim
COPY --from=builder --chown=node /home/node /home/node
WORKDIR /home/node/tck
USER node
Expand Down

0 comments on commit 4a8b652

Please sign in to comment.