From 4a5297b1cf3bf0455c49f547653c553b3a823aa4 Mon Sep 17 00:00:00 2001 From: Diwakar Date: Wed, 21 May 2025 01:38:32 +0700 Subject: [PATCH] Update Dockerfile to improve re-build time While building docker image, copy only the required files/folders for building FE. Improves re-building time --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d7de72f01..6d7293a52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,13 @@ RUN apk add --no-cache git COPY package.json package-lock.json ./ RUN npm ci -COPY . . +# Copy only required files for build +COPY scripts ./scripts +COPY static ./static +COPY vite.config.ts postcss.config.js tailwind.config.js tsconfig.json svelte.config.js ./ +COPY CHANGELOG.md ./ +COPY src ./src + ENV APP_BUILD_HASH=${BUILD_HASH} RUN npm run build