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