From d481507569d79b50b6903858dc41f9e09298e4af Mon Sep 17 00:00:00 2001 From: Guiorgy Date: Mon, 24 Nov 2025 10:07:49 +0400 Subject: [PATCH] Removed the RUN rm -rf layer from the Dockerfile app-builder stage; exclusions are now handled by updating .dockerignore. --- .dockerignore | 1 + Dockerfile | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.dockerignore b/.dockerignore index fc969ae28..ef57d5c34 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,5 @@ web/node_modules +web/config_*.py web/*.log web/regression web/**/tests/ diff --git a/Dockerfile b/Dockerfile index b39adcd73..fa3abc2c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,16 +32,7 @@ RUN apk add --no-cache \ zlib-dev COPY .git .git -# Create the /pgadmin4 directory and copy the source into it. Explicitly -# remove the node_modules directory as we'll recreate a clean version, as well -# as various other files we don't want COPY web /pgadmin4/web -RUN rm -rf /pgadmin4/web/*.log \ - /pgadmin4/web/config_*.py \ - /pgadmin4/web/node_modules \ - /pgadmin4/web/regression \ - `find /pgadmin4/web -type d -name tests` \ - `find /pgadmin4/web -type f -name .DS_Store` WORKDIR /pgadmin4/web