From 91543fa29e8ecef15a6ee3c81e0f1f124e73a15a Mon Sep 17 00:00:00 2001 From: Maxim Medvedev Date: Sun, 22 Dec 2024 21:48:31 +0100 Subject: [PATCH] Server: use node:18 (bookworm) instead node:18-bullseye ... because bookworm based images have less vulnerabilities and has "old stable" status --- Dockerfile.server | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.server b/Dockerfile.server index 8dff0e000..076da5859 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -2,11 +2,11 @@ # Build stage # ============================================================================= -FROM node:18-bullseye AS builder +FROM node:18 AS builder RUN apt-get update \ && apt-get install -y \ - python tini \ + python3 tini \ && rm -rf /var/lib/apt/lists/* # Enables Yarn @@ -56,7 +56,7 @@ RUN BUILD_SEQUENCIAL=1 yarn install --inline-builds \ # from a smaller base image. # ============================================================================= -FROM node:18-bullseye-slim +FROM node:18-slim ARG user=joplin RUN useradd --create-home --shell /bin/bash $user