From a1a003ff03c3bf8921178e009ec1a317b1198477 Mon Sep 17 00:00:00 2001 From: "Nikolai X. Shadeuxs" Date: Wed, 19 Jun 2024 03:38:51 -0400 Subject: [PATCH] Update apps/api/Dockerfile --- apps/api/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 64512a2..5ce75bd 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -3,16 +3,17 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" LABEL fly_launch_runtime="Node.js" RUN corepack enable -COPY . /app WORKDIR /app FROM base AS prod-deps COPY /cache /pnpm/store -RUN pnpm install --prod --frozen-lockfile +COPY . /app +RUN corepack prepare pnpm@latest --activate && pnpm install --prod --frozen-lockfile FROM base AS build COPY /cache /pnpm/store -RUN pnpm install --frozen-lockfile +COPY . /app +RUN corepack prepare pnpm@latest --activate && pnpm install --frozen-lockfile RUN pnpm run build # Install packages needed for deployment