From dc357a6d4b5776e434be6d334431518ca2bf150d Mon Sep 17 00:00:00 2001 From: Allen Shibu <93600615+alllenshibu@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:10:36 +0530 Subject: [PATCH] fix(build): Fix docker build issues --- apps/core-admin/Dockerfile | 6 ++++-- apps/core-auth0-actions/Dockerfile | 12 +++++++----- apps/core-mailer/Dockerfile | 4 +++- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/apps/core-admin/Dockerfile b/apps/core-admin/Dockerfile index 8abb646b..073c9667 100644 --- a/apps/core-admin/Dockerfile +++ b/apps/core-admin/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS builder +FROM node:18-alpine3.16 AS builder RUN apk add --no-cache libc6-compat RUN apk update @@ -23,7 +23,9 @@ RUN pnpm install RUN pnpm run build --filter=techno-event-core-admin... -FROM node:18-alpine +FROM node:18-alpine3.16 + +RUN apk --no-cache add openssl COPY --from=builder /app/apps/core-admin/dist . COPY --from=builder /app/node_modules/.pnpm/@prisma+client*/node_modules/.prisma/client/*.node . diff --git a/apps/core-auth0-actions/Dockerfile b/apps/core-auth0-actions/Dockerfile index e89d1ff2..8816c809 100644 --- a/apps/core-auth0-actions/Dockerfile +++ b/apps/core-auth0-actions/Dockerfile @@ -1,10 +1,10 @@ -FROM node:16-alpine AS builder -RUN apk update && apk add --no-cache libc6-compat -RUN corepack enable && corepack prepare pnpm@8.15.1 --activate +FROM node:18-alpine AS builder +RUN apk add --no-cache libc6-compat +RUN apk update WORKDIR /app -RUN npm install turbo +RUN npm install -g pnpm turbo COPY ../../. . @@ -23,7 +23,9 @@ RUN pnpm install RUN pnpm run build --filter=core-auth0-actions... -FROM node:18-alpine +FROM node:18-alpine3.16 + +RUN apk --no-cache add openssl COPY --from=builder /app/apps/core-auth0-actions/dist . COPY --from=builder /app/node_modules/.pnpm/@prisma+client*/node_modules/.prisma/client/*.node . diff --git a/apps/core-mailer/Dockerfile b/apps/core-mailer/Dockerfile index 5a550954..4c63feb2 100644 --- a/apps/core-mailer/Dockerfile +++ b/apps/core-mailer/Dockerfile @@ -23,7 +23,9 @@ RUN pnpm install RUN pnpm run build --filter=core-mailer... -FROM node:18-alpine +FROM node:18-alpine3.16 + +RUN apk --no-cache add openssl COPY --from=builder /app/apps/core-mailer/dist .