1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Server: use node:18 (bookworm) instead node:18-bullseye

... because bookworm based images have less vulnerabilities and has "old stable" status
This commit is contained in:
Maxim Medvedev 2024-12-22 21:48:31 +01:00
parent c40e6ae8ee
commit 91543fa29e

View File

@ -2,11 +2,11 @@
# Build stage # Build stage
# ============================================================================= # =============================================================================
FROM node:18-bullseye AS builder FROM node:18 AS builder
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y \ && apt-get install -y \
python tini \ python3 tini \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Enables Yarn # Enables Yarn
@ -56,7 +56,7 @@ RUN BUILD_SEQUENCIAL=1 yarn install --inline-builds \
# from a smaller base image. # from a smaller base image.
# ============================================================================= # =============================================================================
FROM node:18-bullseye-slim FROM node:18-slim
ARG user=joplin ARG user=joplin
RUN useradd --create-home --shell /bin/bash $user RUN useradd --create-home --shell /bin/bash $user