Skip to content

Commit d481507

Browse files
authored
Removed the RUN rm -rf layer from the Dockerfile app-builder stage; exclusions are now handled by updating .dockerignore.
1 parent 6d01a24 commit d481507

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
web/node_modules
2+
web/config_*.py
23
web/*.log
34
web/regression
45
web/**/tests/

Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,7 @@ RUN apk add --no-cache \
3232
zlib-dev
3333

3434
COPY .git .git
35-
# Create the /pgadmin4 directory and copy the source into it. Explicitly
36-
# remove the node_modules directory as we'll recreate a clean version, as well
37-
# as various other files we don't want
3835
COPY web /pgadmin4/web
39-
RUN rm -rf /pgadmin4/web/*.log \
40-
/pgadmin4/web/config_*.py \
41-
/pgadmin4/web/node_modules \
42-
/pgadmin4/web/regression \
43-
`find /pgadmin4/web -type d -name tests` \
44-
`find /pgadmin4/web -type f -name .DS_Store`
4536

4637
WORKDIR /pgadmin4/web
4738

0 commit comments

Comments
 (0)