From c25823307def62e3e80d15c0ffd63ca3567b9088 Mon Sep 17 00:00:00 2001 From: Ghadi Mhawej Date: Wed, 30 Oct 2024 18:27:25 +0200 Subject: [PATCH] fix: fix dockerfile node version --- apps/vc-api/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/vc-api/Dockerfile b/apps/vc-api/Dockerfile index 242425e..378b860 100644 --- a/apps/vc-api/Dockerfile +++ b/apps/vc-api/Dockerfile @@ -9,13 +9,13 @@ RUN apk add --no-cache --virtual .build-deps python3 make g++ && \ # Stage 2: Build the application # Note: Assuming main.js doesn't require a build process. If it does, you would need to copy source files and build here. -FROM node:lts-alpine as build +FROM node:18.18.0-alpine as build WORKDIR /usr/src/app COPY --from=deps /usr/src/app/node_modules ./node_modules COPY dist/apps/vc-api/ ./ # Stage 3: Production image, copy all the files and run the app -FROM node:lts-alpine as runner +FROM node:18.18.0-alpine as runner RUN apk add --no-cache dumb-init && \ addgroup -S appgroup && adduser -S appuser -G appgroup ENV NODE_ENV production