From 3aef92e848d032d66c7c13ccbe0a32d2b9548ee8 Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:12:48 +0100 Subject: [PATCH] fix(docs): Dockerfile --- docs/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Dockerfile b/docs/Dockerfile index 460956e6f..1bd29275a 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -5,8 +5,8 @@ FROM node:18-slim AS base FROM base AS deps WORKDIR /app -# Copy the lockfiles and package.json to install dependencies -COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ +# Copy the lockfiles and package.json from docs directory +COPY docs/package.json docs/yarn.lock* docs/package-lock.json* docs/pnpm-lock.yaml* ./ RUN \ if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ elif [ -f package-lock.json ]; then npm ci; \ @@ -20,7 +20,7 @@ WORKDIR /app # Copy the installed node_modules and the rest of the app's source code COPY --from=deps /app/node_modules ./node_modules -COPY . . +COPY docs/. . # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry