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