From 65629d07ff61c6a93a3a8e3fa3aac204dd01528a Mon Sep 17 00:00:00 2001 From: Rahul Bhardwaj Date: Thu, 10 Oct 2024 07:26:25 +0530 Subject: [PATCH] Update Dockerfile Co-authored-by: Sleeyax --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e69599..9704b59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,13 @@ WORKDIR /app RUN npm install -g pnpm +# Install dependencies (this step is cached as long as the dependencies don't change) +COPY package.json package-lock.json . +RUN pnpm install + # Copy the rest of your app's source code COPY . . -# Install dependencies -RUN pnpm install - # Expose the port the app runs on EXPOSE 5173