From eae0f7131cc8007493e4d2327fe22f7a6a256bf7 Mon Sep 17 00:00:00 2001 From: Peter Muriuki Date: Fri, 30 Aug 2024 14:06:01 +0300 Subject: [PATCH] Update express version in DockerFilie (#1464) * Update express version in DockerFilie * Update base image for buliding express server * Enable corepack in node js images --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb6277dbe..ef7d674b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine/git AS sources # TODO - update the tag here -RUN git clone --branch=v2.1.1-rc1 https://github.com/onaio/express-server.git /usr/src/express-server +RUN git clone --branch=v2.1.1-rc3 https://github.com/onaio/express-server.git /usr/src/express-server FROM node:16.18-alpine as build @@ -23,7 +23,9 @@ USER node RUN yarn lerna run build -FROM node:16.18-alpine as nodejsbuild +FROM node:20-alpine as nodejsbuild + +RUN corepack enable COPY --from=sources /usr/src/express-server /usr/src/express-server @@ -37,6 +39,8 @@ RUN rm -rf ./node_modules/typescript FROM nikolaik/python-nodejs:python3.12-nodejs22-alpine as final +RUN corepack enable + # Use tini for NodeJS application https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#handling-kernel-signals RUN apk add --no-cache tini curl libmagic