From 7f715790b90e428983cacef13854b07fe445d384 Mon Sep 17 00:00:00 2001 From: "Nikolai X. Shadeuxs" Date: Wed, 19 Jun 2024 03:50:32 -0400 Subject: [PATCH] Update apps/api/Dockerfile --- apps/api/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 64512a2..5329cf3 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -3,15 +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 +COPY apps/api/package.json apps/api/pnpm-lock.yaml ./ RUN pnpm install --prod --frozen-lockfile FROM base AS build COPY /cache /pnpm/store +COPY apps/api/package.json apps/api/pnpm-lock.yaml ./ +COPY . . RUN pnpm install --frozen-lockfile RUN pnpm run build