From b3b392463682b87528ce6f1fe2269e86195bb71f Mon Sep 17 00:00:00 2001 From: PE39806 <185931318+PE39806@users.noreply.github.com> Date: Thu, 23 Jan 2025 12:59:22 +0000 Subject: [PATCH] update standalone dockerfile to node 22 --- Dockerfile.standalone | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.standalone b/Dockerfile.standalone index abde45cad..280a6c777 100644 --- a/Dockerfile.standalone +++ b/Dockerfile.standalone @@ -1,4 +1,4 @@ -FROM node:18-alpine as backend +FROM node:22-alpine as backend RUN apk add --no-cache libc6-compat RUN apk update WORKDIR /app @@ -7,7 +7,7 @@ RUN --mount=type=cache,target=/cache/npm npm install --cache=/cache/npm COPY backend . RUN npm run build -FROM node:18-alpine as frontend +FROM node:22-alpine as frontend RUN apk add --no-cache libc6-compat RUN apk update WORKDIR /app @@ -22,7 +22,7 @@ RUN apt update ENV DEBIAN_FRONTEND=noninteractive RUN apt install git curl wget gnupg ca-certificates iproute2 nginx supervisor -y -RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\ +RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - &&\ apt install nodejs -y #ENV MINIO_ROOT_USER=minioadmin @@ -67,7 +67,7 @@ COPY backend/package*.json ./ COPY backend/certs/san.cnf ./ RUN --mount=type=cache,target=/cache/npm npm install --omit=dev --cache=/cache/npm RUN mkdir -p certs && openssl genrsa -out certs/key.pem 2048 && openssl req -new -x509 -key certs/key.pem -out certs/cert.pem -config ./san.cnf -extensions 'v3_req' -days 360 -COPY backend/python-docs python-docs +COPY backend/docs python-docs COPY --from=backend /app/config config COPY --from=backend /app/dist . COPY infrastructure/standalone/local.cjs config/local.cjs