From 650fb019c293f21603f7a962687b09f1b72d983b Mon Sep 17 00:00:00 2001 From: "Nikolai X. Shadeuxs" Date: Wed, 19 Jun 2024 04:28:13 -0400 Subject: [PATCH] Update apps/api/Dockerfile --- apps/api/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 04bf5df..02d2367 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -6,18 +6,19 @@ RUN corepack enable WORKDIR /app # Copy only the package files first -COPY package.json pnpm-lock.yaml ./ +COPY apps/api/package.json apps/api/pnpm-lock.yaml ./ FROM base AS prod-deps RUN pnpm install --prod --frozen-lockfile FROM base AS build -COPY package.json pnpm-lock.yaml ./ +COPY apps/api/package.json apps/api/pnpm-lock.yaml ./ RUN pnpm install --frozen-lockfile -COPY . . +COPY apps/api . RUN pnpm run build -FROM base +FROM node:20-slim +WORKDIR /app RUN apt-get update -qq && \ apt-get install --no-install-recommends -y chromium chromium-sandbox && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives