Skip to content

Commit

Permalink
fix(build): Fix docker build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alllenshibu committed Jan 14, 2025
1 parent f885e4f commit dc357a6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 4 additions & 2 deletions apps/core-admin/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 .
Expand Down
12 changes: 7 additions & 5 deletions apps/core-auth0-actions/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:16-alpine AS builder
RUN apk update && apk add --no-cache libc6-compat
RUN corepack enable && corepack prepare [email protected] --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 ../../. .

Expand All @@ -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 .
Expand Down
4 changes: 3 additions & 1 deletion apps/core-mailer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down

0 comments on commit dc357a6

Please sign in to comment.